@webitel/api-services 26.12.3 → 26.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/clients/outboundResourceGroups/outboundResourceGroups.ts +14 -12
- package/src/gen/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen/_models/apiUserAccessToken.ts +2 -0
- package/src/gen/_models/apiUserWarningId.ts +2 -0
- package/src/gen/_models/apiWarningData.ts +2 -0
- package/src/gen/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen/_models/engineSystemSettingName.ts +0 -1
- package/src/gen/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen/_models/googleProtobufAny.ts +117 -0
- package/src/gen/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen/_models/googleRpcStatus.ts +23 -0
- package/src/gen/_models/index.ts +7 -4
- package/src/gen/_models/protobufNullValue.ts +3 -8
- package/src/gen/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/_models/addUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/addUserAccessTokenParams.ts +3 -4
- package/src/gen-wire/_models/apiTokenExpiryWarning.ts +13 -0
- package/src/gen-wire/_models/apiUserAccessToken.ts +2 -0
- package/src/gen-wire/_models/apiUserWarningId.ts +2 -0
- package/src/gen-wire/_models/apiWarningData.ts +2 -0
- package/src/gen-wire/_models/engineSearchHistoryCallRequest.ts +1 -0
- package/src/gen-wire/_models/engineSystemSettingName.ts +0 -1
- package/src/gen-wire/_models/gateServiceListGatesParams.ts +7 -0
- package/src/gen-wire/_models/gateServiceListGatesTypesItem.ts +1 -0
- package/src/gen-wire/_models/googleProtobufAny.ts +117 -0
- package/src/gen-wire/_models/googleProtobufNullValue.ts +3 -8
- package/src/gen-wire/_models/googleRpcStatus.ts +23 -0
- package/src/gen-wire/_models/index.ts +7 -4
- package/src/gen-wire/_models/protobufNullValue.ts +3 -8
- package/src/gen-wire/_models/searchHistoryCallParams.ts +1 -0
- package/src/gen-wire/_models/searchSystemSettingNameItem.ts +0 -1
- package/src/gen-wire/_models/threadManagementGetCountersParams.ts +21 -0
- package/src/gen-wire/_models/threadManagementGetCountersTypesItem.ts +16 -0
- package/src/gen-wire/_models/updateUserAccessToken2Body.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenBody.ts +2 -0
- package/src/gen-wire/_models/updateUserAccessTokenUpdateBody.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Contact.ts +2 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.ts +19 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1Thread.ts +7 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.ts +27 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.ts +22 -0
- package/src/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.ts +16 -0
- package/src/gen-wire/_models/webitelImApiProviderV1ProviderType.ts +4 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderSummary.ts +6 -0
- package/src/gen-wire/_models/webitelImProviderV1ProviderType.ts +3 -0
- package/src/gen-wire/call-service/call-service.zod.ts +2 -0
- package/src/gen-wire/cases/cases.zod.ts +32 -7
- package/src/gen-wire/customer/customer.zod.ts +32 -7
- package/src/gen-wire/customers/customers.ts +0 -8
- package/src/gen-wire/customers/customers.zod.ts +0 -4
- package/src/gen-wire/index.ts +6 -7
- package/src/gen-wire/index.zod.ts +0 -1
- package/src/gen-wire/list-service/list-service.zod.ts +32 -7
- package/src/gen-wire/member-service/member-service.zod.ts +32 -7
- package/src/gen-wire/messages/messages.zod.ts +32 -7
- package/src/gen-wire/pdf-service/pdf-service.zod.ts +128 -28
- package/src/gen-wire/system-setting-service/system-setting-service.zod.ts +0 -8
- package/src/gen-wire/user-access-tokens/user-access-tokens.zod.ts +85 -5
- package/src/gen-wire/users/users.zod.ts +10 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.ts +6 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +96 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.ts +21 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.ts +449 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.ts +18 -0
- package/src/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.ts +150 -0
- package/src/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.ts +18 -2
- package/src/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +14 -7
- package/types/.tsbuildinfo +1 -1
- package/types/gen/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen/_models/apiWarningData.d.ts +2 -0
- package/types/gen/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen/_models/index.d.ts +7 -4
- package/types/gen/_models/protobufNullValue.d.ts +3 -8
- package/types/gen/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/_models/addUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/addUserAccessTokenParams.d.ts +3 -4
- package/types/gen-wire/_models/apiTokenExpiryWarning.d.ts +12 -0
- package/types/gen-wire/_models/apiUserAccessToken.d.ts +2 -0
- package/types/gen-wire/_models/apiUserWarningId.d.ts +2 -0
- package/types/gen-wire/_models/apiWarningData.d.ts +2 -0
- package/types/gen-wire/_models/engineSearchHistoryCallRequest.d.ts +1 -0
- package/types/gen-wire/_models/engineSystemSettingName.d.ts +0 -1
- package/types/gen-wire/_models/gateServiceListGatesParams.d.ts +7 -0
- package/types/gen-wire/_models/gateServiceListGatesTypesItem.d.ts +1 -0
- package/types/gen-wire/_models/googleProtobufAny.d.ts +117 -0
- package/types/gen-wire/_models/googleProtobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/googleRpcStatus.d.ts +23 -0
- package/types/gen-wire/_models/index.d.ts +7 -4
- package/types/gen-wire/_models/protobufNullValue.d.ts +3 -8
- package/types/gen-wire/_models/searchHistoryCallParams.d.ts +1 -0
- package/types/gen-wire/_models/searchSystemSettingNameItem.d.ts +0 -1
- package/types/gen-wire/_models/threadManagementGetCountersParams.d.ts +20 -0
- package/types/gen-wire/_models/threadManagementGetCountersTypesItem.d.ts +13 -0
- package/types/gen-wire/_models/updateUserAccessToken2Body.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenBody.d.ts +2 -0
- package/types/gen-wire/_models/updateUserAccessTokenUpdateBody.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Contact.d.ts +2 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1GetCountersResponse.d.ts +18 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1Thread.d.ts +7 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannel.d.ts +26 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadChannelType.d.ts +19 -0
- package/types/gen-wire/_models/webitelImApiGatewayV1ThreadCounters.d.ts +15 -0
- package/types/gen-wire/_models/webitelImApiProviderV1ProviderType.d.ts +4 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderSummary.d.ts +6 -0
- package/types/gen-wire/_models/webitelImProviderV1ProviderType.d.ts +3 -0
- package/types/gen-wire/call-service/call-service.zod.d.ts +2 -0
- package/types/gen-wire/customers/customers.d.ts +1 -3
- package/types/gen-wire/customers/customers.zod.d.ts +0 -3
- package/types/gen-wire/index.d.ts +2 -4
- package/types/gen-wire/index.zod.d.ts +0 -1
- package/types/gen-wire/system-setting-service/system-setting-service.zod.d.ts +0 -8
- package/types/gen-wire/user-access-tokens/user-access-tokens.zod.d.ts +46 -0
- package/types/gen-wire/users/users.zod.d.ts +8 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-contacts/webitel-im-api-gateway-v1-contacts.zod.d.ts +1 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +16 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.d.ts +3 -1
- package/types/gen-wire/webitel-im-api-gateway-v1-threadmanagement/webitel-im-api-gateway-v1-threadmanagement.zod.d.ts +124 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-threadpreviewservice/webitel-im-api-gateway-v1-threadpreviewservice.zod.d.ts +3 -0
- package/types/gen-wire/webitel-im-api-gateway-v1-updates/webitel-im-api-gateway-v1-updates.zod.d.ts +33 -0
- package/types/gen-wire/webitel-im-provider-v1-gateservice/webitel-im-provider-v1-gateservice.zod.d.ts +4 -0
- package/types/gen-wire/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +7 -0
- package/src/gen/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen/_models/engineSchemaVersion.ts +0 -17
- package/src/gen/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/_models/apiServerInfoResponse.ts +0 -10
- package/src/gen-wire/_models/engineSchemaVersion.ts +0 -16
- package/src/gen-wire/_models/engineSearchSchemaVersionResponse.ts +0 -12
- package/src/gen-wire/_models/searchSchemaVersionParams.ts +0 -14
- package/src/gen-wire/schema-version-service/schema-version-service.ts +0 -46
- package/src/gen-wire/schema-version-service/schema-version-service.zod.ts +0 -40
- package/types/gen/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen/_models/engineSchemaVersion.d.ts +0 -16
- package/types/gen/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/_models/apiServerInfoResponse.d.ts +0 -9
- package/types/gen-wire/_models/engineSchemaVersion.d.ts +0 -15
- package/types/gen-wire/_models/engineSearchSchemaVersionResponse.d.ts +0 -11
- package/types/gen-wire/_models/searchSchemaVersionParams.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.d.ts +0 -13
- package/types/gen-wire/schema-version-service/schema-version-service.zod.d.ts +0 -31
|
@@ -489,6 +489,7 @@ export const SearchHistoryCallQueryParams = zod.object({
|
|
|
489
489
|
]),
|
|
490
490
|
)
|
|
491
491
|
.optional(),
|
|
492
|
+
hide_number: zod.boolean().optional(),
|
|
492
493
|
});
|
|
493
494
|
|
|
494
495
|
export const searchHistoryCallResponseItemsItemFilesItemTypeDefault = `file_type_empty`;
|
|
@@ -863,6 +864,7 @@ export const SearchHistoryCallPostBody = zod.object({
|
|
|
863
864
|
has_file: zod.boolean().optional(),
|
|
864
865
|
has_transcript: zod.boolean().optional(),
|
|
865
866
|
has_transfer: zod.boolean().optional(),
|
|
867
|
+
hide_number: zod.boolean().optional(),
|
|
866
868
|
id: zod.array(zod.string()).optional(),
|
|
867
869
|
member_id: zod.array(zod.string()).optional(),
|
|
868
870
|
missed: zod.boolean().optional(),
|
|
@@ -1362,17 +1362,42 @@ export const ExportCasesQueryParams = zod.object({
|
|
|
1362
1362
|
export const ExportCasesResponse = zod.object({
|
|
1363
1363
|
error: zod
|
|
1364
1364
|
.object({
|
|
1365
|
-
code: zod
|
|
1365
|
+
code: zod
|
|
1366
|
+
.int()
|
|
1367
|
+
.optional()
|
|
1368
|
+
.describe(
|
|
1369
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
1370
|
+
),
|
|
1366
1371
|
details: zod
|
|
1367
1372
|
.array(
|
|
1368
|
-
zod
|
|
1369
|
-
|
|
1370
|
-
|
|
1373
|
+
zod
|
|
1374
|
+
.object({
|
|
1375
|
+
'@type': zod
|
|
1376
|
+
.string()
|
|
1377
|
+
.optional()
|
|
1378
|
+
.describe(
|
|
1379
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
1380
|
+
),
|
|
1381
|
+
})
|
|
1382
|
+
.describe(
|
|
1383
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
1384
|
+
),
|
|
1371
1385
|
)
|
|
1372
|
-
.optional()
|
|
1373
|
-
|
|
1386
|
+
.optional()
|
|
1387
|
+
.describe(
|
|
1388
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
1389
|
+
),
|
|
1390
|
+
message: zod
|
|
1391
|
+
.string()
|
|
1392
|
+
.optional()
|
|
1393
|
+
.describe(
|
|
1394
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
1395
|
+
),
|
|
1374
1396
|
})
|
|
1375
|
-
.optional()
|
|
1397
|
+
.optional()
|
|
1398
|
+
.describe(
|
|
1399
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
1400
|
+
),
|
|
1376
1401
|
result: zod
|
|
1377
1402
|
.object({
|
|
1378
1403
|
data: zod.string().optional(),
|
|
@@ -43,17 +43,42 @@ export const CustomerLogoutResponse = zod
|
|
|
43
43
|
.object({
|
|
44
44
|
cause: zod
|
|
45
45
|
.object({
|
|
46
|
-
code: zod
|
|
46
|
+
code: zod
|
|
47
|
+
.int()
|
|
48
|
+
.optional()
|
|
49
|
+
.describe(
|
|
50
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
51
|
+
),
|
|
47
52
|
details: zod
|
|
48
53
|
.array(
|
|
49
|
-
zod
|
|
50
|
-
|
|
51
|
-
|
|
54
|
+
zod
|
|
55
|
+
.object({
|
|
56
|
+
'@type': zod
|
|
57
|
+
.string()
|
|
58
|
+
.optional()
|
|
59
|
+
.describe(
|
|
60
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
61
|
+
),
|
|
62
|
+
})
|
|
63
|
+
.describe(
|
|
64
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
65
|
+
),
|
|
52
66
|
)
|
|
53
|
-
.optional()
|
|
54
|
-
|
|
67
|
+
.optional()
|
|
68
|
+
.describe(
|
|
69
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
70
|
+
),
|
|
71
|
+
message: zod
|
|
72
|
+
.string()
|
|
73
|
+
.optional()
|
|
74
|
+
.describe(
|
|
75
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
76
|
+
),
|
|
55
77
|
})
|
|
56
|
-
.optional()
|
|
78
|
+
.optional()
|
|
79
|
+
.describe(
|
|
80
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
81
|
+
),
|
|
57
82
|
})
|
|
58
83
|
.describe(
|
|
59
84
|
'UpdateDisconnect notifies the client about\nan imminent disconnect due to specified reason.',
|
|
@@ -12,7 +12,6 @@ import type {
|
|
|
12
12
|
ApiGetCustomerResponse,
|
|
13
13
|
ApiLicenseUsageResponse,
|
|
14
14
|
ApiLicenseUsersResponse,
|
|
15
|
-
ApiServerInfoResponse,
|
|
16
15
|
ApiUpdateCustomerResponse,
|
|
17
16
|
GetCustomer2Params,
|
|
18
17
|
GetCustomerParams,
|
|
@@ -124,11 +123,6 @@ export const // --- title start
|
|
|
124
123
|
},
|
|
125
124
|
});
|
|
126
125
|
};
|
|
127
|
-
const serverInfo = (
|
|
128
|
-
options?: AxiosRequestConfig,
|
|
129
|
-
): Promise<AxiosResponse<ApiServerInfoResponse>> => {
|
|
130
|
-
return axiosInstance.get(`/srvinfo`, options);
|
|
131
|
-
};
|
|
132
126
|
|
|
133
127
|
// --- footer start
|
|
134
128
|
return {
|
|
@@ -139,7 +133,6 @@ export const // --- title start
|
|
|
139
133
|
licenseUsage2,
|
|
140
134
|
licenseUsage3,
|
|
141
135
|
licenseUsers,
|
|
142
|
-
serverInfo,
|
|
143
136
|
};
|
|
144
137
|
};
|
|
145
138
|
export type GetCustomerResult = AxiosResponse<ApiGetCustomerResponse>;
|
|
@@ -149,6 +142,5 @@ export type GetCustomer2Result = AxiosResponse<ApiGetCustomerResponse>;
|
|
|
149
142
|
export type LicenseUsage2Result = AxiosResponse<ApiLicenseUsageResponse>;
|
|
150
143
|
export type LicenseUsage3Result = AxiosResponse<ApiLicenseUsageResponse>;
|
|
151
144
|
export type LicenseUsersResult = AxiosResponse<ApiLicenseUsersResponse>;
|
|
152
|
-
export type ServerInfoResult = AxiosResponse<ApiServerInfoResponse>;
|
|
153
145
|
|
|
154
146
|
// --- footer end
|
package/src/gen-wire/index.ts
CHANGED
|
@@ -889,7 +889,6 @@ export {
|
|
|
889
889
|
LicenseUsersParams,
|
|
890
890
|
LicenseUsersQueryParams,
|
|
891
891
|
LicenseUsersResponse,
|
|
892
|
-
ServerInfoResponse,
|
|
893
892
|
UpdateCustomerQueryParams,
|
|
894
893
|
UpdateCustomerResponse,
|
|
895
894
|
} from './customers/customers.zod';
|
|
@@ -2067,12 +2066,6 @@ export {
|
|
|
2067
2066
|
} from './routing-variable-service/routing-variable-service.zod';
|
|
2068
2067
|
export * from './schema-variables-service/schema-variables-service';
|
|
2069
2068
|
export * from './schema-variables-service/schema-variables-service.zod';
|
|
2070
|
-
export * from './schema-version-service/schema-version-service';
|
|
2071
|
-
export {
|
|
2072
|
-
SearchSchemaVersionParams,
|
|
2073
|
-
SearchSchemaVersionQueryParams,
|
|
2074
|
-
SearchSchemaVersionResponse,
|
|
2075
|
-
} from './schema-version-service/schema-version-service.zod';
|
|
2076
2069
|
export * from './services/services';
|
|
2077
2070
|
export {
|
|
2078
2071
|
CreateServiceBody,
|
|
@@ -2727,6 +2720,8 @@ export {
|
|
|
2727
2720
|
ThreadManagementFlushVariablesBody,
|
|
2728
2721
|
ThreadManagementFlushVariablesParams,
|
|
2729
2722
|
ThreadManagementFlushVariablesResponse,
|
|
2723
|
+
ThreadManagementGetCountersQueryParams,
|
|
2724
|
+
ThreadManagementGetCountersResponse,
|
|
2730
2725
|
ThreadManagementGetParams,
|
|
2731
2726
|
ThreadManagementGetQueryParams,
|
|
2732
2727
|
ThreadManagementGetResponse,
|
|
@@ -2759,6 +2754,7 @@ export {
|
|
|
2759
2754
|
ThreadManagementTransferResponse,
|
|
2760
2755
|
threadManagementAddMemberBodyRoleDefault,
|
|
2761
2756
|
threadManagementAddMemberResponseMemberRoleDefault,
|
|
2757
|
+
threadManagementCreateResponseThreadChannelTypeDefault,
|
|
2762
2758
|
threadManagementCreateResponseThreadLastMsgDeletedByRoleDefault,
|
|
2763
2759
|
threadManagementCreateResponseThreadLastMsgFailuresItemMemberRoleDefault,
|
|
2764
2760
|
threadManagementCreateResponseThreadLastMsgForwardOriginKindDefault,
|
|
@@ -2770,6 +2766,7 @@ export {
|
|
|
2770
2766
|
threadManagementCreateResponseThreadMembersItemRoleDefault,
|
|
2771
2767
|
threadManagementCreateResponseThreadReadStatesItemMemberRoleDefault,
|
|
2772
2768
|
threadManagementCreateResponseThreadTypeDefault,
|
|
2769
|
+
threadManagementGetResponseChannelTypeDefault,
|
|
2773
2770
|
threadManagementGetResponseLastMsgDeletedByRoleDefault,
|
|
2774
2771
|
threadManagementGetResponseLastMsgFailuresItemMemberRoleDefault,
|
|
2775
2772
|
threadManagementGetResponseLastMsgForwardOriginKindDefault,
|
|
@@ -2781,6 +2778,7 @@ export {
|
|
|
2781
2778
|
threadManagementGetResponseMembersItemRoleDefault,
|
|
2782
2779
|
threadManagementGetResponseReadStatesItemMemberRoleDefault,
|
|
2783
2780
|
threadManagementGetResponseTypeDefault,
|
|
2781
|
+
threadManagementSearchLeftResponseItemsItemChannelTypeDefault,
|
|
2784
2782
|
threadManagementSearchLeftResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2785
2783
|
threadManagementSearchLeftResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
|
|
2786
2784
|
threadManagementSearchLeftResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
@@ -2792,6 +2790,7 @@ export {
|
|
|
2792
2790
|
threadManagementSearchLeftResponseItemsItemMembersItemRoleDefault,
|
|
2793
2791
|
threadManagementSearchLeftResponseItemsItemReadStatesItemMemberRoleDefault,
|
|
2794
2792
|
threadManagementSearchLeftResponseItemsItemTypeDefault,
|
|
2793
|
+
threadManagementSearchResponseItemsItemChannelTypeDefault,
|
|
2795
2794
|
threadManagementSearchResponseItemsItemLastMsgDeletedByRoleDefault,
|
|
2796
2795
|
threadManagementSearchResponseItemsItemLastMsgFailuresItemMemberRoleDefault,
|
|
2797
2796
|
threadManagementSearchResponseItemsItemLastMsgForwardOriginKindDefault,
|
|
@@ -95,7 +95,6 @@ export * from './routing-outbound-call-service/routing-outbound-call-service.zod
|
|
|
95
95
|
export * from './routing-schema-service/routing-schema-service.zod';
|
|
96
96
|
export * from './routing-variable-service/routing-variable-service.zod';
|
|
97
97
|
export * from './schema-variables-service/schema-variables-service.zod';
|
|
98
|
-
export * from './schema-version-service/schema-version-service.zod';
|
|
99
98
|
export * from './services/services.zod';
|
|
100
99
|
export * from './shift-template-service/shift-template-service.zod';
|
|
101
100
|
export * from './skill-service/skill-service.zod';
|
|
@@ -269,17 +269,42 @@ export const CreateListCommunicationBulkResponse = zod.object({
|
|
|
269
269
|
zod.object({
|
|
270
270
|
error: zod
|
|
271
271
|
.object({
|
|
272
|
-
code: zod
|
|
272
|
+
code: zod
|
|
273
|
+
.int()
|
|
274
|
+
.optional()
|
|
275
|
+
.describe(
|
|
276
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
277
|
+
),
|
|
273
278
|
details: zod
|
|
274
279
|
.array(
|
|
275
|
-
zod
|
|
276
|
-
|
|
277
|
-
|
|
280
|
+
zod
|
|
281
|
+
.object({
|
|
282
|
+
'@type': zod
|
|
283
|
+
.string()
|
|
284
|
+
.optional()
|
|
285
|
+
.describe(
|
|
286
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
287
|
+
),
|
|
288
|
+
})
|
|
289
|
+
.describe(
|
|
290
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
291
|
+
),
|
|
278
292
|
)
|
|
279
|
-
.optional()
|
|
280
|
-
|
|
293
|
+
.optional()
|
|
294
|
+
.describe(
|
|
295
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
296
|
+
),
|
|
297
|
+
message: zod
|
|
298
|
+
.string()
|
|
299
|
+
.optional()
|
|
300
|
+
.describe(
|
|
301
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
302
|
+
),
|
|
281
303
|
})
|
|
282
|
-
.optional()
|
|
304
|
+
.optional()
|
|
305
|
+
.describe(
|
|
306
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
307
|
+
),
|
|
283
308
|
index: zod.int().optional(),
|
|
284
309
|
item: zod
|
|
285
310
|
.object({
|
|
@@ -1172,17 +1172,42 @@ export const ExportMembersQueryParams = zod.object({
|
|
|
1172
1172
|
export const ExportMembersResponse = zod.object({
|
|
1173
1173
|
error: zod
|
|
1174
1174
|
.object({
|
|
1175
|
-
code: zod
|
|
1175
|
+
code: zod
|
|
1176
|
+
.int()
|
|
1177
|
+
.optional()
|
|
1178
|
+
.describe(
|
|
1179
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
1180
|
+
),
|
|
1176
1181
|
details: zod
|
|
1177
1182
|
.array(
|
|
1178
|
-
zod
|
|
1179
|
-
|
|
1180
|
-
|
|
1183
|
+
zod
|
|
1184
|
+
.object({
|
|
1185
|
+
'@type': zod
|
|
1186
|
+
.string()
|
|
1187
|
+
.optional()
|
|
1188
|
+
.describe(
|
|
1189
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
1190
|
+
),
|
|
1191
|
+
})
|
|
1192
|
+
.describe(
|
|
1193
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
1194
|
+
),
|
|
1181
1195
|
)
|
|
1182
|
-
.optional()
|
|
1183
|
-
|
|
1196
|
+
.optional()
|
|
1197
|
+
.describe(
|
|
1198
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
1199
|
+
),
|
|
1200
|
+
message: zod
|
|
1201
|
+
.string()
|
|
1202
|
+
.optional()
|
|
1203
|
+
.describe(
|
|
1204
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
1205
|
+
),
|
|
1184
1206
|
})
|
|
1185
|
-
.optional()
|
|
1207
|
+
.optional()
|
|
1208
|
+
.describe(
|
|
1209
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
1210
|
+
),
|
|
1186
1211
|
result: zod
|
|
1187
1212
|
.object({
|
|
1188
1213
|
data: zod.string().optional(),
|
|
@@ -64,17 +64,42 @@ export const MessagesServiceBroadcastMessageResponse = zod.object({
|
|
|
64
64
|
zod.object({
|
|
65
65
|
error: zod
|
|
66
66
|
.object({
|
|
67
|
-
code: zod
|
|
67
|
+
code: zod
|
|
68
|
+
.int()
|
|
69
|
+
.optional()
|
|
70
|
+
.describe(
|
|
71
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
72
|
+
),
|
|
68
73
|
details: zod
|
|
69
74
|
.array(
|
|
70
|
-
zod
|
|
71
|
-
|
|
72
|
-
|
|
75
|
+
zod
|
|
76
|
+
.object({
|
|
77
|
+
'@type': zod
|
|
78
|
+
.string()
|
|
79
|
+
.optional()
|
|
80
|
+
.describe(
|
|
81
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
82
|
+
),
|
|
83
|
+
})
|
|
84
|
+
.describe(
|
|
85
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
86
|
+
),
|
|
73
87
|
)
|
|
74
|
-
.optional()
|
|
75
|
-
|
|
88
|
+
.optional()
|
|
89
|
+
.describe(
|
|
90
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
91
|
+
),
|
|
92
|
+
message: zod
|
|
93
|
+
.string()
|
|
94
|
+
.optional()
|
|
95
|
+
.describe(
|
|
96
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
97
|
+
),
|
|
76
98
|
})
|
|
77
|
-
.optional()
|
|
99
|
+
.optional()
|
|
100
|
+
.describe(
|
|
101
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
102
|
+
),
|
|
78
103
|
peer_id: zod.string().optional(),
|
|
79
104
|
}),
|
|
80
105
|
)
|
|
@@ -32,17 +32,42 @@ export const DownloadScreenrecordingArchiveQueryParams = zod.object({
|
|
|
32
32
|
export const DownloadScreenrecordingArchiveResponse = zod.object({
|
|
33
33
|
error: zod
|
|
34
34
|
.object({
|
|
35
|
-
code: zod
|
|
35
|
+
code: zod
|
|
36
|
+
.int()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe(
|
|
39
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
40
|
+
),
|
|
36
41
|
details: zod
|
|
37
42
|
.array(
|
|
38
|
-
zod
|
|
39
|
-
|
|
40
|
-
|
|
43
|
+
zod
|
|
44
|
+
.object({
|
|
45
|
+
'@type': zod
|
|
46
|
+
.string()
|
|
47
|
+
.optional()
|
|
48
|
+
.describe(
|
|
49
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
50
|
+
),
|
|
51
|
+
})
|
|
52
|
+
.describe(
|
|
53
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
54
|
+
),
|
|
41
55
|
)
|
|
42
|
-
.optional()
|
|
43
|
-
|
|
56
|
+
.optional()
|
|
57
|
+
.describe(
|
|
58
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
59
|
+
),
|
|
60
|
+
message: zod
|
|
61
|
+
.string()
|
|
62
|
+
.optional()
|
|
63
|
+
.describe(
|
|
64
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
65
|
+
),
|
|
44
66
|
})
|
|
45
|
-
.optional()
|
|
67
|
+
.optional()
|
|
68
|
+
.describe(
|
|
69
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
70
|
+
),
|
|
46
71
|
result: zod
|
|
47
72
|
.object({
|
|
48
73
|
data: zod.string().optional(),
|
|
@@ -79,17 +104,42 @@ export const DownloadScreenshotArchiveQueryParams = zod.object({
|
|
|
79
104
|
export const DownloadScreenshotArchiveResponse = zod.object({
|
|
80
105
|
error: zod
|
|
81
106
|
.object({
|
|
82
|
-
code: zod
|
|
107
|
+
code: zod
|
|
108
|
+
.int()
|
|
109
|
+
.optional()
|
|
110
|
+
.describe(
|
|
111
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
112
|
+
),
|
|
83
113
|
details: zod
|
|
84
114
|
.array(
|
|
85
|
-
zod
|
|
86
|
-
|
|
87
|
-
|
|
115
|
+
zod
|
|
116
|
+
.object({
|
|
117
|
+
'@type': zod
|
|
118
|
+
.string()
|
|
119
|
+
.optional()
|
|
120
|
+
.describe(
|
|
121
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
122
|
+
),
|
|
123
|
+
})
|
|
124
|
+
.describe(
|
|
125
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
126
|
+
),
|
|
88
127
|
)
|
|
89
|
-
.optional()
|
|
90
|
-
|
|
128
|
+
.optional()
|
|
129
|
+
.describe(
|
|
130
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
131
|
+
),
|
|
132
|
+
message: zod
|
|
133
|
+
.string()
|
|
134
|
+
.optional()
|
|
135
|
+
.describe(
|
|
136
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
137
|
+
),
|
|
91
138
|
})
|
|
92
|
-
.optional()
|
|
139
|
+
.optional()
|
|
140
|
+
.describe(
|
|
141
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
142
|
+
),
|
|
93
143
|
result: zod
|
|
94
144
|
.object({
|
|
95
145
|
data: zod.string().optional(),
|
|
@@ -258,17 +308,42 @@ export const DownloadCallArchiveQueryParams = zod.object({
|
|
|
258
308
|
export const DownloadCallArchiveResponse = zod.object({
|
|
259
309
|
error: zod
|
|
260
310
|
.object({
|
|
261
|
-
code: zod
|
|
311
|
+
code: zod
|
|
312
|
+
.int()
|
|
313
|
+
.optional()
|
|
314
|
+
.describe(
|
|
315
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
316
|
+
),
|
|
262
317
|
details: zod
|
|
263
318
|
.array(
|
|
264
|
-
zod
|
|
265
|
-
|
|
266
|
-
|
|
319
|
+
zod
|
|
320
|
+
.object({
|
|
321
|
+
'@type': zod
|
|
322
|
+
.string()
|
|
323
|
+
.optional()
|
|
324
|
+
.describe(
|
|
325
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
326
|
+
),
|
|
327
|
+
})
|
|
328
|
+
.describe(
|
|
329
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
330
|
+
),
|
|
267
331
|
)
|
|
268
|
-
.optional()
|
|
269
|
-
|
|
332
|
+
.optional()
|
|
333
|
+
.describe(
|
|
334
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
335
|
+
),
|
|
336
|
+
message: zod
|
|
337
|
+
.string()
|
|
338
|
+
.optional()
|
|
339
|
+
.describe(
|
|
340
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
341
|
+
),
|
|
270
342
|
})
|
|
271
|
-
.optional()
|
|
343
|
+
.optional()
|
|
344
|
+
.describe(
|
|
345
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
346
|
+
),
|
|
272
347
|
result: zod
|
|
273
348
|
.object({
|
|
274
349
|
data: zod.string().optional(),
|
|
@@ -302,17 +377,42 @@ export const DownloadCallScreenrecordingArchiveQueryParams = zod.object({
|
|
|
302
377
|
export const DownloadCallScreenrecordingArchiveResponse = zod.object({
|
|
303
378
|
error: zod
|
|
304
379
|
.object({
|
|
305
|
-
code: zod
|
|
380
|
+
code: zod
|
|
381
|
+
.int()
|
|
382
|
+
.optional()
|
|
383
|
+
.describe(
|
|
384
|
+
'The status code, which should be an enum value of\n[google.rpc.Code][google.rpc.Code].',
|
|
385
|
+
),
|
|
306
386
|
details: zod
|
|
307
387
|
.array(
|
|
308
|
-
zod
|
|
309
|
-
|
|
310
|
-
|
|
388
|
+
zod
|
|
389
|
+
.object({
|
|
390
|
+
'@type': zod
|
|
391
|
+
.string()
|
|
392
|
+
.optional()
|
|
393
|
+
.describe(
|
|
394
|
+
'A URL/resource name that uniquely identifies the type of the serialized\nprotocol buffer message. This string must contain at least\none "/" character. The last segment of the URL\'s path must represent\nthe fully qualified name of the type (as in\n`path/google.protobuf.Duration`). The name should be in a canonical form\n(e.g., leading "." is not accepted).\n\nIn practice, teams usually precompile into the binary all types that they\nexpect it to use in the context of Any. However, for URLs which use the\nscheme `http`, `https`, or no scheme, one can optionally set up a type\nserver that maps type URLs to message definitions as follows:\n\n* If no scheme is provided, `https` is assumed.\n* An HTTP GET on the URL must yield a [google.protobuf.Type][]\n value in binary format, or produce an error.\n* Applications are allowed to cache lookup results based on the\n URL, or have them precompiled into a binary to avoid any\n lookup. Therefore, binary compatibility needs to be preserved\n on changes to types. (Use versioned type names to manage\n breaking changes.)\n\nNote: this functionality is not currently available in the official\nprotobuf release, and it is not used for type URLs beginning with\ntype.googleapis.com. As of May 2023, there are no widely used type server\nimplementations and no plans to implement one.\n\nSchemes other than `http`, `https` (or the empty scheme) might be\nused with implementation specific semantics.',
|
|
395
|
+
),
|
|
396
|
+
})
|
|
397
|
+
.describe(
|
|
398
|
+
'`Any` contains an arbitrary serialized protocol buffer message along with a\nURL that describes the type of the serialized message.\n\nProtobuf library provides support to pack/unpack Any values in the form\nof utility functions or additional generated methods of the Any type.\n\nExample 1: Pack and unpack a message in C++.\n\n Foo foo = ...;\n Any any;\n any.PackFrom(foo);\n ...\n if (any.UnpackTo(&foo)) {\n ...\n }\n\nExample 2: Pack and unpack a message in Java.\n\n Foo foo = ...;\n Any any = Any.pack(foo);\n ...\n if (any.is(Foo.class)) {\n foo = any.unpack(Foo.class);\n }\n // or ...\n if (any.isSameTypeAs(Foo.getDefaultInstance())) {\n foo = any.unpack(Foo.getDefaultInstance());\n }\n\n Example 3: Pack and unpack a message in Python.\n\n foo = Foo(...)\n any = Any()\n any.Pack(foo)\n ...\n if any.Is(Foo.DESCRIPTOR):\n any.Unpack(foo)\n ...\n\n Example 4: Pack and unpack a message in Go\n\n foo := &pb.Foo{...}\n any, err := anypb.New(foo)\n if err != nil {\n ...\n }\n ...\n foo := &pb.Foo{}\n if err := any.UnmarshalTo(foo); err != nil {\n ...\n }\n\nThe pack methods provided by protobuf library will by default use\n\'type.googleapis.com/full.type.name\' as the type URL and the unpack\nmethods only use the fully qualified type name after the last \'/\'\nin the type URL, for example "foo.bar.com/x/y.z" will yield type\nname "y.z".\n\nJSON\n====\nThe JSON representation of an `Any` value uses the regular\nrepresentation of the deserialized, embedded message, with an\nadditional field `@type` which contains the type URL. Example:\n\n package google.profile;\n message Person {\n string first_name = 1;\n string last_name = 2;\n }\n\n {\n "@type": "type.googleapis.com/google.profile.Person",\n "firstName": <string>,\n "lastName": <string>\n }\n\nIf the embedded message type is well-known and has a custom JSON\nrepresentation, that representation will be embedded adding a field\n`value` which holds the custom JSON in addition to the `@type`\nfield. Example (for message [google.protobuf.Duration][]):\n\n {\n "@type": "type.googleapis.com/google.protobuf.Duration",\n "value": "1.212s"\n }',
|
|
399
|
+
),
|
|
311
400
|
)
|
|
312
|
-
.optional()
|
|
313
|
-
|
|
401
|
+
.optional()
|
|
402
|
+
.describe(
|
|
403
|
+
'A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.',
|
|
404
|
+
),
|
|
405
|
+
message: zod
|
|
406
|
+
.string()
|
|
407
|
+
.optional()
|
|
408
|
+
.describe(
|
|
409
|
+
'A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\n[google.rpc.Status.details][google.rpc.Status.details] field, or localized\nby the client.',
|
|
410
|
+
),
|
|
314
411
|
})
|
|
315
|
-
.optional()
|
|
412
|
+
.optional()
|
|
413
|
+
.describe(
|
|
414
|
+
'The `Status` type defines a logical error model that is suitable for\ndifferent programming environments, including REST APIs and RPC APIs. It is\nused by [gRPC](https://github.com/grpc). Each `Status` message contains\nthree pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the\n[API Design Guide](https://cloud.google.com/apis/design/errors).',
|
|
415
|
+
),
|
|
316
416
|
result: zod
|
|
317
417
|
.object({
|
|
318
418
|
data: zod.string().optional(),
|