From b7c2bfaf5d56007a0d7f7987f57082697e423ad2 Mon Sep 17 00:00:00 2001 From: Twilio Date: Thu, 5 Oct 2023 08:13:57 +0000 Subject: [PATCH] [Librarian] Regenerated @ a25fe2e20ee404d8f8642d6e5acceff276916c9e --- CHANGES.md | 6 + spec/json/twilio_api_v2010.json | 8 -- spec/json/twilio_flex_v2.json | 24 ---- spec/json/twilio_lookups_bulk.json | 1 + spec/json/twilio_trusthub_v1.json | 202 +++++++++++++++++++++++++++++ spec/yaml/twilio_api_v2010.yaml | 10 -- spec/yaml/twilio_flex_v2.yaml | 8 -- spec/yaml/twilio_lookups_bulk.yaml | 2 +- spec/yaml/twilio_trusthub_v1.yaml | 143 ++++++++++++++++++++ 9 files changed, 353 insertions(+), 51 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 81657ff9..b4e4e6ec 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,11 @@ twilio-oai changelog ==================== +[2023-10-05] Version 2.0.0-rc.8 +------------------------------- +**Lookups** +- Add test api support for Lookup v2 + + [2023-09-21] Version 2.0.0-rc.7 ------------------------------- **Conversations** diff --git a/spec/json/twilio_api_v2010.json b/spec/json/twilio_api_v2010.json index f340dedc..63e6280c 100644 --- a/spec/json/twilio_api_v2010.json +++ b/spec/json/twilio_api_v2010.json @@ -3948,10 +3948,6 @@ "format": "uri-map", "nullable": true, "description": "A list of related resources identified by their URIs relative to `https://api.twilio.com`" - }, - "tags": { - "nullable": true, - "description": "A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message." } } }, @@ -25262,10 +25258,6 @@ "type": "string", "description": "For [Content Editor/API](https://www.twilio.com/docs/content) only: Key-value pairs of [Template variables](https://www.twilio.com/docs/content/using-variables-with-content-api) and their substitution values. `content_sid` parameter must also be provided. If values are not defined in the `content_variables` parameter, the [Template's default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used." }, - "Tags": { - "type": "string", - "description": "A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length." - }, "RiskCheck": { "type": "string", "$ref": "#/components/schemas/message_enum_risk_check", diff --git a/spec/json/twilio_flex_v2.json b/spec/json/twilio_flex_v2.json index 8eee2c39..fac0221c 100644 --- a/spec/json/twilio_flex_v2.json +++ b/spec/json/twilio_flex_v2.json @@ -158,36 +158,12 @@ } ], "tags": [ - { - "name": "FlexV2AvailableCapacity" - }, - { - "name": "FlexV2CapacityReservation" - }, - { - "name": "FlexV2ChannelConfiguration" - }, { "name": "FlexV2ConductorFlow" }, - { - "name": "FlexV2InstanceUser" - }, { "name": "FlexV2User" }, - { - "name": "FlexV2UserCapacity" - }, - { - "name": "FlexV2UserCapacityReservation" - }, - { - "name": "FlexV2UserConcurrency" - }, - { - "name": "FlexV2UserStatus" - }, { "name": "FlexV2WebChannels" } diff --git a/spec/json/twilio_lookups_bulk.json b/spec/json/twilio_lookups_bulk.json index f9463472..be932201 100644 --- a/spec/json/twilio_lookups_bulk.json +++ b/spec/json/twilio_lookups_bulk.json @@ -21,6 +21,7 @@ } ], "paths": { + "/v2/batch/query": {} }, "components": { "schemas": { diff --git a/spec/json/twilio_trusthub_v1.json b/spec/json/twilio_trusthub_v1.json index 4aa69fc0..de1b02f9 100644 --- a/spec/json/twilio_trusthub_v1.json +++ b/spec/json/twilio_trusthub_v1.json @@ -7,6 +7,32 @@ } }, "schemas": { + "trusthub.v1.compliance_inquiry": { + "type": "object", + "properties": { + "inquiry_id": { + "type": "string", + "nullable": true, + "description": "The unique ID used to start an embedded compliance registration session." + }, + "inquiry_session_token": { + "type": "string", + "nullable": true, + "description": "The session token used to start an embedded compliance registration session." + }, + "customer_id": { + "type": "string", + "nullable": true, + "description": "The CustomerID matching the Customer Profile that should be resumed or resubmitted for editing." + }, + "url": { + "type": "string", + "format": "uri", + "nullable": true, + "description": "The URL of this resource." + } + } + }, "trusthub.v1.customer_profile": { "type": "object", "properties": { @@ -793,6 +819,179 @@ }, "openapi": "3.0.1", "paths": { + "/v1/ComplianceInquiries/Customers/Initialize": { + "servers": [ + { + "url": "https://trusthub.twilio.com" + } + ], + "description": "", + "x-twilio": { + "defaultOutputProperties": [ + "inquiry_id", + "session_token", + "customer_id" + ], + "mountName": "compliance_inquiries", + "className": "compliance_inquiries", + "pathType": "list" + }, + "post": { + "description": "Create a new Compliance Inquiry for the authenticated account. This is necessary to start a new embedded session.", + "tags": [ + "TrusthubV1ComplianceInquiries" + ], + "responses": { + "201": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/trusthub.v1.compliance_inquiry" + }, + "examples": { + "create": { + "value": { + "inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa", + "inquiry_session_token": "new.session.token", + "customer_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize" + } + } + } + } + }, + "description": "Created" + } + }, + "security": [ + { + "accountSid_authToken": [] + } + ], + "operationId": "CreateComplianceInquiry", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "title": "CreateComplianceInquiryRequest", + "properties": { + "PrimaryProfileSid": { + "type": "string", + "minLength": 34, + "maxLength": 34, + "pattern": "^BU[0-9a-fA-F]{32}$", + "description": "The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile." + } + }, + "required": [ + "PrimaryProfileSid" + ] + }, + "examples": { + "create": { + "value": { + "PrimaryProfileSid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + } + } + } + } + } + }, + "/v1/ComplianceInquiries/Customers/{CustomerId}/Initialize": { + "servers": [ + { + "url": "https://trusthub.twilio.com" + } + ], + "description": "", + "x-twilio": { + "defaultOutputProperties": [ + "inquiry_id", + "session_token", + "customer_id" + ], + "mountName": "compliance_inquiries", + "className": "compliance_inquiries", + "pathType": "instance" + }, + "post": { + "description": "Resume a specific Compliance Inquiry that has expired, or re-open a rejected Compliance Inquiry for editing.", + "tags": [ + "TrusthubV1ComplianceInquiries" + ], + "parameters": [ + { + "name": "CustomerId", + "in": "path", + "description": "The unique CustomerId matching the Customer Profile/Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Inquiry creation call.", + "schema": { + "type": "string" + }, + "required": true + } + ], + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/trusthub.v1.compliance_inquiry" + }, + "examples": { + "update": { + "value": { + "inquiry_id": "inq_aaaaaaaaaaaaaaaaaaaaaaaa", + "inquiry_session_token": "new.session.token", + "customer_id": "tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", + "url": "https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize" + } + } + } + } + }, + "description": "OK" + } + }, + "security": [ + { + "accountSid_authToken": [] + } + ], + "operationId": "UpdateComplianceInquiry", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "type": "object", + "title": "UpdateComplianceInquiryRequest", + "properties": { + "PrimaryProfileSid": { + "type": "string", + "minLength": 34, + "maxLength": 34, + "pattern": "^BU[0-9a-fA-F]{32}$", + "description": "The unique SID identifier of the Primary Customer Profile that should be used as a parent. Only necessary when creating a secondary Customer Profile." + } + }, + "required": [ + "PrimaryProfileSid" + ] + }, + "examples": { + "update": { + "value": { + "PrimaryProfileSid": "BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" + } + } + } + } + } + } + } + }, "/v1/CustomerProfiles": { "servers": [ { @@ -7057,6 +7256,9 @@ } ], "tags": [ + { + "name": "TrusthubV1ComplianceInquiries" + }, { "name": "TrusthubV1CustomerProfiles" }, diff --git a/spec/yaml/twilio_api_v2010.yaml b/spec/yaml/twilio_api_v2010.yaml index 3c046e1d..e5e7b81a 100644 --- a/spec/yaml/twilio_api_v2010.yaml +++ b/spec/yaml/twilio_api_v2010.yaml @@ -3780,10 +3780,6 @@ components: nullable: true description: A list of related resources identified by their URIs relative to `https://api.twilio.com` - tags: - nullable: true - description: A string containing a JSON map of key value pairs of tags to - be recorded as metadata for the message. message_enum_status: type: string enum: @@ -21396,12 +21392,6 @@ paths: be provided. If values are not defined in the `content_variables` parameter, the [Template''s default placeholder values](https://www.twilio.com/docs/content/content-api-resources#create-templates) are used.' - Tags: - type: string - description: A string containing a JSON map of key value pairs of - tags to be recorded as metadata for the message. The object may - contain up to 10 tags. Keys and values can each be up to 128 characters - in length. RiskCheck: type: string $ref: '#/components/schemas/message_enum_risk_check' diff --git a/spec/yaml/twilio_flex_v2.yaml b/spec/yaml/twilio_flex_v2.yaml index a84e64df..21a7bf4a 100644 --- a/spec/yaml/twilio_flex_v2.yaml +++ b/spec/yaml/twilio_flex_v2.yaml @@ -117,14 +117,6 @@ paths: servers: - url: https://flex-api.twilio.com tags: -- name: FlexV2AvailableCapacity -- name: FlexV2CapacityReservation -- name: FlexV2ChannelConfiguration - name: FlexV2ConductorFlow -- name: FlexV2InstanceUser - name: FlexV2User -- name: FlexV2UserCapacity -- name: FlexV2UserCapacityReservation -- name: FlexV2UserConcurrency -- name: FlexV2UserStatus - name: FlexV2WebChannels diff --git a/spec/yaml/twilio_lookups_bulk.yaml b/spec/yaml/twilio_lookups_bulk.yaml index 909a64c4..5ce8ea81 100644 --- a/spec/yaml/twilio_lookups_bulk.yaml +++ b/spec/yaml/twilio_lookups_bulk.yaml @@ -21,7 +21,7 @@ info: servers: - url: https://lookups.twilio.com paths: - + /v2/batch/query: {} components: schemas: LookupRequest: diff --git a/spec/yaml/twilio_trusthub_v1.yaml b/spec/yaml/twilio_trusthub_v1.yaml index 592c6753..4bf54811 100644 --- a/spec/yaml/twilio_trusthub_v1.yaml +++ b/spec/yaml/twilio_trusthub_v1.yaml @@ -4,6 +4,29 @@ components: scheme: basic type: http schemas: + trusthub.v1.compliance_inquiry: + type: object + properties: + inquiry_id: + type: string + nullable: true + description: The unique ID used to start an embedded compliance registration + session. + inquiry_session_token: + type: string + nullable: true + description: The session token used to start an embedded compliance registration + session. + customer_id: + type: string + nullable: true + description: The CustomerID matching the Customer Profile that should be + resumed or resubmitted for editing. + url: + type: string + format: uri + nullable: true + description: The URL of this resource. trusthub.v1.customer_profile: type: object properties: @@ -707,6 +730,125 @@ info: version: 1.0.0 openapi: 3.0.1 paths: + /v1/ComplianceInquiries/Customers/Initialize: + servers: + - url: https://trusthub.twilio.com + description: '' + x-twilio: + defaultOutputProperties: + - inquiry_id + - session_token + - customer_id + mountName: compliance_inquiries + className: compliance_inquiries + pathType: list + post: + description: Create a new Compliance Inquiry for the authenticated account. + This is necessary to start a new embedded session. + tags: + - TrusthubV1ComplianceInquiries + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/trusthub.v1.compliance_inquiry' + examples: + create: + value: + inquiry_id: inq_aaaaaaaaaaaaaaaaaaaaaaaa + inquiry_session_token: new.session.token + customer_id: tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + url: https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize + description: Created + security: + - accountSid_authToken: [] + operationId: CreateComplianceInquiry + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + title: CreateComplianceInquiryRequest + properties: + PrimaryProfileSid: + type: string + minLength: 34 + maxLength: 34 + pattern: ^BU[0-9a-fA-F]{32}$ + description: The unique SID identifier of the Primary Customer Profile + that should be used as a parent. Only necessary when creating + a secondary Customer Profile. + required: + - PrimaryProfileSid + examples: + create: + value: + PrimaryProfileSid: BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + /v1/ComplianceInquiries/Customers/{CustomerId}/Initialize: + servers: + - url: https://trusthub.twilio.com + description: '' + x-twilio: + defaultOutputProperties: + - inquiry_id + - session_token + - customer_id + mountName: compliance_inquiries + className: compliance_inquiries + pathType: instance + post: + description: Resume a specific Compliance Inquiry that has expired, or re-open + a rejected Compliance Inquiry for editing. + tags: + - TrusthubV1ComplianceInquiries + parameters: + - name: CustomerId + in: path + description: The unique CustomerId matching the Customer Profile/Compliance + Inquiry that should be resumed or resubmitted. This value will have been + returned by the initial Compliance Inquiry creation call. + schema: + type: string + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/trusthub.v1.compliance_inquiry' + examples: + update: + value: + inquiry_id: inq_aaaaaaaaaaaaaaaaaaaaaaaa + inquiry_session_token: new.session.token + customer_id: tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa + url: https://trusthub.twilio.com/v1/ComplianceInquiries/Customers/tri1.us1.trusthub.ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.customer.BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Initialize + description: OK + security: + - accountSid_authToken: [] + operationId: UpdateComplianceInquiry + requestBody: + content: + application/x-www-form-urlencoded: + schema: + type: object + title: UpdateComplianceInquiryRequest + properties: + PrimaryProfileSid: + type: string + minLength: 34 + maxLength: 34 + pattern: ^BU[0-9a-fA-F]{32}$ + description: The unique SID identifier of the Primary Customer Profile + that should be used as a parent. Only necessary when creating + a secondary Customer Profile. + required: + - PrimaryProfileSid + examples: + update: + value: + PrimaryProfileSid: BUaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa /v1/CustomerProfiles: servers: - url: https://trusthub.twilio.com @@ -5285,6 +5427,7 @@ paths: servers: - url: https://trusthub.twilio.com tags: +- name: TrusthubV1ComplianceInquiries - name: TrusthubV1CustomerProfiles - name: TrusthubV1CustomerProfilesChannelEndpointAssignment - name: TrusthubV1CustomerProfilesEntityAssignments