Skip to content

Commit 29ded81

Browse files
committed
feat(spec): alipay-v3 joins the signed connector auth schemes, naming the Alipay public key as vendorPublicKeyRef
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cxRP1AqTeP2PWAhwGK
1 parent 6212fdc commit 29ded81

13 files changed

Lines changed: 170 additions & 18 deletions

File tree

‎content/docs/references/index.mdx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Protocol reference — every schema by module
33
navTitle: Protocol Reference
4-
description: Every schema published by @objectstack/spec — 1570 schemas across 14 protocol modules
4+
description: Every schema published by @objectstack/spec — 1571 schemas across 14 protocol modules
55
---
66

77
{/* ⚠️ AUTO-GENERATED — DO NOT EDIT. Run build-docs.ts to regenerate. Hand-written docs live in the module folders under content/docs/. */}
@@ -25,7 +25,7 @@ counts are sums of the rows they head. Regenerate with
2525
| [Automation Protocol](/docs/references/automation) | 15 | 77 | Flows and their nodes, approvals, ETL pipelines, webhooks, state machines, execution records. |
2626
| [Data Protocol](/docs/references/data) | 31 | 174 | Objects, fields, queries, filters, datasources and drivers — the ObjectQL layer. |
2727
| [Identity Protocol](/docs/references/identity) | 5 | 27 | Users and accounts, organizations, positions, SCIM provisioning. |
28-
| [Integration Protocol](/docs/references/integration) | 1 | 22 | The single connector protocol (ADR-0097) — catalog descriptors and provider-bound instances. |
28+
| [Integration Protocol](/docs/references/integration) | 1 | 23 | The single connector protocol (ADR-0097) — catalog descriptors and provider-bound instances. |
2929
| [Kernel Protocol](/docs/references/kernel) | 29 | 151 | Plugin lifecycle and manifests, capabilities and security, metadata loading, service registry. |
3030
| [Marketplace Protocol](/docs/references/marketplace) | 4 | 30 | The package & marketplace format — package identity and versions, listing, publish, review, search, install, template manifests. |
3131
| [QA Protocol](/docs/references/qa) | 1 | 8 | Declarative test suites — scenarios, steps, actions and assertions. |
@@ -34,7 +34,7 @@ counts are sums of the rows they head. Regenerate with
3434
| [Studio Protocol](/docs/references/studio) | 3 | 35 | Studio designer metadata — the authoring surfaces for the protocols above. |
3535
| [System Protocol](/docs/references/system) | 37 | 287 | The runtime environment — logging, jobs, cache, metrics, notifications, i18n and compliance. |
3636
| [UI Protocol](/docs/references/ui) | 16 | 172 | Apps, pages, views, dashboards, reports, actions and themes — the ObjectUI layer. |
37-
| **Total** | **203** | **1570** | 14 protocol modules |
37+
| **Total** | **203** | **1571** | 14 protocol modules |
3838

3939
---
4040

@@ -191,13 +191,13 @@ Users and accounts, organizations, positions, SCIM provisioning.
191191

192192
## Integration Protocol
193193

194-
**Source:** `packages/spec/src/integration/` · **Import:** `@objectstack/spec/integration` · **1 page, 22 schemas**
194+
**Source:** `packages/spec/src/integration/` · **Import:** `@objectstack/spec/integration` · **1 page, 23 schemas**
195195

196196
The single connector protocol (ADR-0097) — catalog descriptors and provider-bound instances.
197197

198198
| File | Schemas |
199199
| :--- | :--- |
200-
| [`connector.zod.ts`](/docs/references/integration/connector) | `Connector`, `ConnectorAction`, `ConnectorActionEffect`, `ConnectorAppCredentialVendor`, `ConnectorInstanceAPIKeyAuth`, `ConnectorInstanceAppCredentialAuth`, `ConnectorInstanceAuth`, `ConnectorInstanceBasicAuth`, `ConnectorInstanceBearerAuth`, `ConnectorInstanceNoAuth`, `ConnectorInstanceOAuth2Auth`, `ConnectorInstanceOAuth2AuthorizationCodeAuth`, `ConnectorInstanceOAuth2ClientCredentialsAuth`, `ConnectorInstanceSignedAliyunAcs3Auth`, `ConnectorInstanceSignedAuth`, `ConnectorInstanceSignedTencentCloudTc3Auth`, `ConnectorOAuth2Grant`, `ConnectorRetryStrategy`, `ConnectorSigningScheme`, `ConnectorType`, `DeclarativeConnectorEntry`, `RetryConfig` |
200+
| [`connector.zod.ts`](/docs/references/integration/connector) | `Connector`, `ConnectorAction`, `ConnectorActionEffect`, `ConnectorAppCredentialVendor`, `ConnectorInstanceAPIKeyAuth`, `ConnectorInstanceAppCredentialAuth`, `ConnectorInstanceAuth`, `ConnectorInstanceBasicAuth`, `ConnectorInstanceBearerAuth`, `ConnectorInstanceNoAuth`, `ConnectorInstanceOAuth2Auth`, `ConnectorInstanceOAuth2AuthorizationCodeAuth`, `ConnectorInstanceOAuth2ClientCredentialsAuth`, `ConnectorInstanceSignedAlipayV3Auth`, `ConnectorInstanceSignedAliyunAcs3Auth`, `ConnectorInstanceSignedAuth`, `ConnectorInstanceSignedTencentCloudTc3Auth`, `ConnectorOAuth2Grant`, `ConnectorRetryStrategy`, `ConnectorSigningScheme`, `ConnectorType`, `DeclarativeConnectorEntry`, `RetryConfig` |
201201

202202
---
203203

‎content/docs/references/integration/connector.mdx‎

Lines changed: 56 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ an exception for itself.)
165165
## TypeScript Usage
166166

167167
```typescript
168-
import { ConnectorSchema, ConnectorActionSchema, ConnectorActionEffectSchema, ConnectorAppCredentialVendorSchema, ConnectorInstanceAPIKeyAuthSchema, ConnectorInstanceAppCredentialAuthSchema, ConnectorInstanceAuthSchema, ConnectorInstanceBasicAuthSchema, ConnectorInstanceBearerAuthSchema, ConnectorInstanceNoAuthSchema, ConnectorInstanceOAuth2AuthSchema, ConnectorInstanceOAuth2AuthorizationCodeAuthSchema, ConnectorInstanceOAuth2ClientCredentialsAuthSchema, ConnectorInstanceSignedAliyunAcs3AuthSchema, ConnectorInstanceSignedAuthSchema, ConnectorInstanceSignedTencentCloudTc3AuthSchema, ConnectorOAuth2GrantSchema, ConnectorRetryStrategySchema, ConnectorSigningSchemeSchema, ConnectorTypeSchema, DeclarativeConnectorEntrySchema, RetryConfigSchema } from '@objectstack/spec/integration';
169-
import type { Connector, ConnectorAction, ConnectorActionEffect, ConnectorAppCredentialVendor, ConnectorInstanceAPIKeyAuth, ConnectorInstanceAppCredentialAuth, ConnectorInstanceAuth, ConnectorInstanceBasicAuth, ConnectorInstanceBearerAuth, ConnectorInstanceNoAuth, ConnectorInstanceOAuth2Auth, ConnectorInstanceOAuth2AuthorizationCodeAuth, ConnectorInstanceOAuth2ClientCredentialsAuth, ConnectorInstanceSignedAliyunAcs3Auth, ConnectorInstanceSignedAuth, ConnectorInstanceSignedTencentCloudTc3Auth, ConnectorOAuth2Grant, ConnectorRetryStrategy, ConnectorSigningScheme, ConnectorType, DeclarativeConnectorEntry, RetryConfig } from '@objectstack/spec/integration';
168+
import { ConnectorSchema, ConnectorActionSchema, ConnectorActionEffectSchema, ConnectorAppCredentialVendorSchema, ConnectorInstanceAPIKeyAuthSchema, ConnectorInstanceAppCredentialAuthSchema, ConnectorInstanceAuthSchema, ConnectorInstanceBasicAuthSchema, ConnectorInstanceBearerAuthSchema, ConnectorInstanceNoAuthSchema, ConnectorInstanceOAuth2AuthSchema, ConnectorInstanceOAuth2AuthorizationCodeAuthSchema, ConnectorInstanceOAuth2ClientCredentialsAuthSchema, ConnectorInstanceSignedAlipayV3AuthSchema, ConnectorInstanceSignedAliyunAcs3AuthSchema, ConnectorInstanceSignedAuthSchema, ConnectorInstanceSignedTencentCloudTc3AuthSchema, ConnectorOAuth2GrantSchema, ConnectorRetryStrategySchema, ConnectorSigningSchemeSchema, ConnectorTypeSchema, DeclarativeConnectorEntrySchema, RetryConfigSchema } from '@objectstack/spec/integration';
169+
import type { Connector, ConnectorAction, ConnectorActionEffect, ConnectorAppCredentialVendor, ConnectorInstanceAPIKeyAuth, ConnectorInstanceAppCredentialAuth, ConnectorInstanceAuth, ConnectorInstanceBasicAuth, ConnectorInstanceBearerAuth, ConnectorInstanceNoAuth, ConnectorInstanceOAuth2Auth, ConnectorInstanceOAuth2AuthorizationCodeAuth, ConnectorInstanceOAuth2ClientCredentialsAuth, ConnectorInstanceSignedAlipayV3Auth, ConnectorInstanceSignedAliyunAcs3Auth, ConnectorInstanceSignedAuth, ConnectorInstanceSignedTencentCloudTc3Auth, ConnectorOAuth2Grant, ConnectorRetryStrategy, ConnectorSigningScheme, ConnectorType, DeclarativeConnectorEntry, RetryConfig } from '@objectstack/spec/integration';
170170

171171
// Validate data
172172
const result = ConnectorSchema.parse(data);
@@ -311,6 +311,16 @@ const result = ConnectorSchema.parse(data);
311311
| **keyId** | `string` | ✅ | The SecretId (not a secret); sent in the `Credential` of every signature. |
312312
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the SecretKey every request's signing key is derived from. Never an inline secret. |
313313

314+
### Nested Shape: `Connector.auth[option 7][scheme='alipay-v3']`
315+
316+
| Property | Type | Required | Description |
317+
| :--- | :--- | :--- | :--- |
318+
| **type** | `'signed'` | ✅ | |
319+
| **scheme** | `'alipay-v3'` | ✅ | Alipay OpenAPI v3 signature (ALIPAY-SHA256withRSA); responses are verified. |
320+
| **keyId** | `string` | ✅ | The Alipay app id (not a secret); sent as `app_id` in every signature. |
321+
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the application private key (RSA) every request is signed with. Never an inline key. |
322+
| **vendorPublicKeyRef** | `string` | ✅ | Secrets-layer reference resolved to the Alipay public key every response's signature is verified against. |
323+
314324
### Nested Shape: `Connector.actions[number]`
315325

316326
| Property | Type | Required | Description |
@@ -490,7 +500,7 @@ Type: `{ type: 'oauth2'; tokenUrl?: string; scopes?: string[]; resource?: string
490500

491501
#### Option 7
492502

493-
Type: `{ type: 'signed'; scheme: 'aliyun-acs3-hmac-sha256'; keyId: string; credentialRef: string } | { type: 'signed'; scheme: 'tencentcloud-tc3-hmac-sha256'; keyId: string; credentialRef: string }`
503+
Type: `{ type: 'signed'; scheme: 'aliyun-acs3-hmac-sha256'; keyId: string; credentialRef: string } | { type: 'signed'; scheme: 'tencentcloud-tc3-hmac-sha256'; keyId: string; credentialRef: string } | { type: 'signed'; scheme: 'alipay-v3'; keyId: string; credentialRef: string; … }`
494504

495505
---
496506

@@ -612,6 +622,21 @@ This schema accepts one of the following structures:
612622
| **credentialRef** | `string` | optional | Secrets-layer reference resolved to the client secret; declared together with `clientId` (a `client_credentials` client is confidential). Never an inline secret. |
613623

614624

625+
---
626+
627+
## ConnectorInstanceSignedAlipayV3Auth
628+
629+
### Properties
630+
631+
| Property | Type | Required | Description |
632+
| :--- | :--- | :--- | :--- |
633+
| **type** | `'signed'` | ✅ | |
634+
| **scheme** | `'alipay-v3'` | ✅ | Alipay OpenAPI v3 signature (ALIPAY-SHA256withRSA); responses are verified. |
635+
| **keyId** | `string` | ✅ | The Alipay app id (not a secret); sent as `app_id` in every signature. |
636+
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the application private key (RSA) every request is signed with. Never an inline key. |
637+
| **vendorPublicKeyRef** | `string` | ✅ | Secrets-layer reference resolved to the Alipay public key every response's signature is verified against. |
638+
639+
615640
---
616641

617642
## ConnectorInstanceSignedAliyunAcs3Auth
@@ -664,6 +689,22 @@ This schema accepts one of the following structures:
664689

665690
---
666691

692+
#### Option 3
693+
694+
**Type:** `signed`
695+
696+
### Properties
697+
698+
| Property | Type | Required | Description |
699+
| :--- | :--- | :--- | :--- |
700+
| **type** | `'signed'` | ✅ | |
701+
| **scheme** | `'alipay-v3'` | ✅ | Alipay OpenAPI v3 signature (ALIPAY-SHA256withRSA); responses are verified. |
702+
| **keyId** | `string` | ✅ | The Alipay app id (not a secret); sent as `app_id` in every signature. |
703+
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the application private key (RSA) every request is signed with. Never an inline key. |
704+
| **vendorPublicKeyRef** | `string` | ✅ | Secrets-layer reference resolved to the Alipay public key every response's signature is verified against. |
705+
706+
---
707+
667708

668709
---
669710

@@ -709,12 +750,13 @@ Retry strategy
709750

710751
## ConnectorSigningScheme
711752

712-
Request-signing scheme: `aliyun-acs3-hmac-sha256` (Alibaba Cloud OpenAPI V3 signature) or `tencentcloud-tc3-hmac-sha256` (Tencent Cloud API 3.0 signature v3).
753+
Request-signing scheme: `aliyun-acs3-hmac-sha256` (Alibaba Cloud OpenAPI V3 signature), `tencentcloud-tc3-hmac-sha256` (Tencent Cloud API 3.0 signature v3) or `alipay-v3` (Alipay OpenAPI v3, ALIPAY-SHA256withRSA, responses verified).
713754

714755
### Allowed Values
715756

716757
* `aliyun-acs3-hmac-sha256`
717758
* `tencentcloud-tc3-hmac-sha256`
759+
* `alipay-v3`
718760

719761

720762
---
@@ -872,6 +914,16 @@ Connector type
872914
| **keyId** | `string` | ✅ | The SecretId (not a secret); sent in the `Credential` of every signature. |
873915
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the SecretKey every request's signing key is derived from. Never an inline secret. |
874916

917+
### Nested Shape: `DeclarativeConnectorEntry.auth[option 7][scheme='alipay-v3']`
918+
919+
| Property | Type | Required | Description |
920+
| :--- | :--- | :--- | :--- |
921+
| **type** | `'signed'` | ✅ | |
922+
| **scheme** | `'alipay-v3'` | ✅ | Alipay OpenAPI v3 signature (ALIPAY-SHA256withRSA); responses are verified. |
923+
| **keyId** | `string` | ✅ | The Alipay app id (not a secret); sent as `app_id` in every signature. |
924+
| **credentialRef** | `string` | ✅ | Secrets-layer reference resolved to the application private key (RSA) every request is signed with. Never an inline key. |
925+
| **vendorPublicKeyRef** | `string` | ✅ | Secrets-layer reference resolved to the Alipay public key every response's signature is verified against. |
926+
875927
### Nested Shape: `DeclarativeConnectorEntry.actions[number]`
876928

877929
| Property | Type | Required | Description |

‎docs/audits/2026-07-unknown-key-strictness-ledger.counts/shared.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ hand-patch a number here** — fix the code or the verdict and regenerate.
1919

2020
| Dir | Sites |
2121
|---|---|
22-
| `shared/` | 25 |
22+
| `shared/` | 26 |

‎packages/spec/api-surface/integration.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"ConnectorInstanceOAuth2AuthorizationCodeAuthSchema (const)",
3939
"ConnectorInstanceOAuth2ClientCredentialsAuth (type)",
4040
"ConnectorInstanceOAuth2ClientCredentialsAuthSchema (const)",
41+
"ConnectorInstanceSignedAlipayV3Auth (type)",
42+
"ConnectorInstanceSignedAlipayV3AuthSchema (const)",
4143
"ConnectorInstanceSignedAliyunAcs3Auth (type)",
4244
"ConnectorInstanceSignedAliyunAcs3AuthSchema (const)",
4345
"ConnectorInstanceSignedAuth (type)",

‎packages/spec/authorable-surface/integration.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@
6767
"integration/ConnectorInstanceOAuth2ClientCredentialsAuth:scopes",
6868
"integration/ConnectorInstanceOAuth2ClientCredentialsAuth:tokenUrl",
6969
"integration/ConnectorInstanceOAuth2ClientCredentialsAuth:type",
70+
"integration/ConnectorInstanceSignedAlipayV3Auth:credentialRef",
71+
"integration/ConnectorInstanceSignedAlipayV3Auth:keyId",
72+
"integration/ConnectorInstanceSignedAlipayV3Auth:scheme",
73+
"integration/ConnectorInstanceSignedAlipayV3Auth:type",
74+
"integration/ConnectorInstanceSignedAlipayV3Auth:vendorPublicKeyRef",
7075
"integration/ConnectorInstanceSignedAliyunAcs3Auth:credentialRef",
7176
"integration/ConnectorInstanceSignedAliyunAcs3Auth:keyId",
7277
"integration/ConnectorInstanceSignedAliyunAcs3Auth:scheme",

‎packages/spec/declaration-map/integration.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
"ConnectorInstanceOAuth2AuthorizationCodeAuthSchema": "integration/ConnectorInstanceOAuth2AuthorizationCodeAuth",
2828
"ConnectorInstanceOAuth2ClientCredentialsAuth": "integration/ConnectorInstanceOAuth2ClientCredentialsAuth",
2929
"ConnectorInstanceOAuth2ClientCredentialsAuthSchema": "integration/ConnectorInstanceOAuth2ClientCredentialsAuth",
30+
"ConnectorInstanceSignedAlipayV3Auth": "integration/ConnectorInstanceSignedAlipayV3Auth",
31+
"ConnectorInstanceSignedAlipayV3AuthSchema": "integration/ConnectorInstanceSignedAlipayV3Auth",
3032
"ConnectorInstanceSignedAliyunAcs3Auth": "integration/ConnectorInstanceSignedAliyunAcs3Auth",
3133
"ConnectorInstanceSignedAliyunAcs3AuthSchema": "integration/ConnectorInstanceSignedAliyunAcs3Auth",
3234
"ConnectorInstanceSignedAuth": "integration/ConnectorInstanceSignedAuth",

‎packages/spec/export-origins/integration.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
"ConnectorInstanceOAuth2AuthorizationCodeAuthSchema": "src/shared/connector-auth.zod.ts#ConnectorInstanceOAuth2AuthorizationCodeAuthSchema (const)",
3939
"ConnectorInstanceOAuth2ClientCredentialsAuth": "src/shared/connector-auth.zod.ts#ConnectorInstanceOAuth2ClientCredentialsAuth (type)",
4040
"ConnectorInstanceOAuth2ClientCredentialsAuthSchema": "src/shared/connector-auth.zod.ts#ConnectorInstanceOAuth2ClientCredentialsAuthSchema (const)",
41+
"ConnectorInstanceSignedAlipayV3Auth": "src/shared/connector-auth.zod.ts#ConnectorInstanceSignedAlipayV3Auth (type)",
42+
"ConnectorInstanceSignedAlipayV3AuthSchema": "src/shared/connector-auth.zod.ts#ConnectorInstanceSignedAlipayV3AuthSchema (const)",
4143
"ConnectorInstanceSignedAliyunAcs3Auth": "src/shared/connector-auth.zod.ts#ConnectorInstanceSignedAliyunAcs3Auth (type)",
4244
"ConnectorInstanceSignedAliyunAcs3AuthSchema": "src/shared/connector-auth.zod.ts#ConnectorInstanceSignedAliyunAcs3AuthSchema (const)",
4345
"ConnectorInstanceSignedAuth": "src/shared/connector-auth.zod.ts#ConnectorInstanceSignedAuth (type)",

‎packages/spec/json-schema.manifest/integration.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"integration/ConnectorInstanceOAuth2Auth",
1616
"integration/ConnectorInstanceOAuth2AuthorizationCodeAuth",
1717
"integration/ConnectorInstanceOAuth2ClientCredentialsAuth",
18+
"integration/ConnectorInstanceSignedAlipayV3Auth",
1819
"integration/ConnectorInstanceSignedAliyunAcs3Auth",
1920
"integration/ConnectorInstanceSignedAuth",
2021
"integration/ConnectorInstanceSignedTencentCloudTc3Auth",

0 commit comments

Comments
 (0)