Latest generation

This commit is contained in:
ci core model
2025-11-03 09:38:37 +00:00
parent 69895e5bdb
commit f029f454b9
61 changed files with 494 additions and 368 deletions

View File

@@ -1135,10 +1135,10 @@ class User$Type extends MessageType<User> {
{ no: 6, name: "LanguageCode", kind: "scalar", localName: "LanguageCode", jsonName: "LanguageCode", T: 9 /*ScalarType.STRING*/ },
{ no: 7, name: "TimezoneCode", kind: "scalar", localName: "TimezoneCode", jsonName: "TimezoneCode", T: 9 /*ScalarType.STRING*/ },
{ no: 10, name: "Status", kind: "enum", localName: "Status", jsonName: "Status", T: () => ["api.UserStatus", UserStatus] },
{ no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" } } },
{ no: 11, name: "CreatedAt", kind: "scalar", localName: "CreatedAt", jsonName: "CreatedAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format" }, "validate.rules": { string: { dateIso8601: true } } } },
{ no: 12, name: "Type", kind: "enum", localName: "Type", jsonName: "Type", T: () => ["api.UserType", UserType], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "Type of the user, could be a Service Account or a normal User" } } },
{ no: 13, name: "PartnerAppID", kind: "scalar", localName: "PartnerAppID", jsonName: "PartnerAppID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "If the user is a Service Account, the PartnerAppID is the ID of the partner app it belongs to, empty otherwise" } } },
{ no: 14, name: "ExpiresAt", kind: "scalar", localName: "ExpiresAt", jsonName: "ExpiresAt", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { dateIso8601: true } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format ; only for Service Accounts, empty otherwise" } } },
{ no: 14, name: "ExpiresAt", kind: "scalar", localName: "ExpiresAt", jsonName: "ExpiresAt", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format ; only for Service Accounts, empty otherwise" }, "validate.rules": { string: { dateIso8601: true } } } },
{ no: 15, name: "PartnerID", kind: "scalar", localName: "PartnerID", jsonName: "PartnerID", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The Partner ID the user belongs to. If empty, the user is not affiliated to a partner" } } },
{ no: 16, name: "TwoFA", kind: "enum", localName: "TwoFA", jsonName: "TwoFA", T: () => ["api.TwoFAValue", TwoFAValue], options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "The 2FA value for the user" } } },
{ no: 17, name: "TemporarilyLocked", kind: "scalar", localName: "TemporarilyLocked", jsonName: "TemporarilyLocked", T: 8 /*ScalarType.BOOL*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { description: "If the user has been temporarily locked due to too many failed login attempts" } } }
@@ -1646,7 +1646,7 @@ class CreateSARequest$Type extends MessageType<CreateSARequest> {
constructor() {
super("api.CreateSARequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } }
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<CreateSARequest>): CreateSARequest {
@@ -1808,7 +1808,7 @@ class SuggestSANameRequest$Type extends MessageType<SuggestSANameRequest> {
constructor() {
super("api.SuggestSANameRequest", [
{ no: 1, name: "Header", kind: "message", localName: "Header", jsonName: "Header", T: () => RequestOrganisationHeader, options: { "validate.rules": { message: { required: true } } } },
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } }, "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } }
{ no: 2, name: "Name", kind: "scalar", localName: "Name", jsonName: "Name", T: 9 /*ScalarType.STRING*/, options: { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field": { pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" }, "validate.rules": { string: { minLen: "1", pattern: "^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$" } } } }
], { "grpc.gateway.protoc_gen_openapiv2.options.openapiv2_schema": { jsonSchema: { required: ["Header", "Name"] } } });
}
create(value?: PartialMessage<SuggestSANameRequest>): SuggestSANameRequest {