@activepieces/shared 0.41.0 → 0.42.0
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 +4 -4
- package/src/index.js +0 -4
- package/src/index.js.map +1 -1
- package/src/lib/automation/agents/index.d.ts +105 -118
- package/src/lib/automation/agents/index.js +23 -22
- package/src/lib/automation/agents/index.js.map +1 -1
- package/src/lib/automation/agents/mcp-tool-name-util.d.ts +15 -0
- package/src/lib/automation/agents/mcp-tool-name-util.js +40 -0
- package/src/lib/automation/agents/mcp-tool-name-util.js.map +1 -0
- package/src/lib/automation/agents/tools.d.ts +141 -144
- package/src/lib/automation/agents/tools.js +30 -43
- package/src/lib/automation/agents/tools.js.map +1 -1
- package/src/lib/automation/app-connection/app-connection.d.ts +40 -42
- package/src/lib/automation/app-connection/app-connection.js +6 -8
- package/src/lib/automation/app-connection/app-connection.js.map +1 -1
- package/src/lib/automation/app-connection/dto/read-app-connection-request.d.ts +28 -28
- package/src/lib/automation/app-connection/dto/read-app-connection-request.js +15 -14
- package/src/lib/automation/app-connection/dto/read-app-connection-request.js.map +1 -1
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.d.ts +365 -365
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js +61 -102
- package/src/lib/automation/app-connection/dto/upsert-app-connection-request.js.map +1 -1
- package/src/lib/automation/engine/engine-operation.d.ts +21 -21
- package/src/lib/automation/engine/engine-operation.js +14 -14
- package/src/lib/automation/engine/engine-operation.js.map +1 -1
- package/src/lib/automation/engine/execution-errors.d.ts +3 -0
- package/src/lib/automation/engine/execution-errors.js +7 -1
- package/src/lib/automation/engine/execution-errors.js.map +1 -1
- package/src/lib/automation/engine/requests.d.ts +88 -88
- package/src/lib/automation/engine/requests.js +35 -35
- package/src/lib/automation/engine/requests.js.map +1 -1
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.d.ts +15 -15
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.js +13 -12
- package/src/lib/automation/flow-run/dto/list-flow-runs-request.js.map +1 -1
- package/src/lib/automation/flow-run/execution/execution-output.d.ts +5 -4
- package/src/lib/automation/flow-run/execution/execution-output.js +4 -4
- package/src/lib/automation/flow-run/execution/execution-output.js.map +1 -1
- package/src/lib/automation/flow-run/execution/flow-execution.d.ts +55 -54
- package/src/lib/automation/flow-run/execution/flow-execution.js +24 -22
- package/src/lib/automation/flow-run/execution/flow-execution.js.map +1 -1
- package/src/lib/automation/flow-run/flow-run.d.ts +54 -56
- package/src/lib/automation/flow-run/flow-run.js +12 -12
- package/src/lib/automation/flow-run/flow-run.js.map +1 -1
- package/src/lib/automation/flow-run/test-flow-run-request.d.ts +43 -43
- package/src/lib/automation/flow-run/test-flow-run-request.js +31 -31
- package/src/lib/automation/flow-run/test-flow-run-request.js.map +1 -1
- package/src/lib/automation/flows/actions/action.d.ts +483 -571
- package/src/lib/automation/flows/actions/action.js +113 -118
- package/src/lib/automation/flows/actions/action.js.map +1 -1
- package/src/lib/automation/flows/dto/count-flows-request.d.ts +6 -6
- package/src/lib/automation/flows/dto/count-flows-request.js +4 -4
- package/src/lib/automation/flows/dto/count-flows-request.js.map +1 -1
- package/src/lib/automation/flows/dto/create-flow-request.d.ts +10 -11
- package/src/lib/automation/flows/dto/create-flow-request.js +8 -8
- package/src/lib/automation/flows/dto/create-flow-request.js.map +1 -1
- package/src/lib/automation/flows/dto/flow-mcp.requests.d.ts +7 -7
- package/src/lib/automation/flows/dto/flow-mcp.requests.js +5 -5
- package/src/lib/automation/flows/dto/flow-mcp.requests.js.map +1 -1
- package/src/lib/automation/flows/dto/list-flows-request.d.ts +23 -23
- package/src/lib/automation/flows/dto/list-flows-request.js +18 -17
- package/src/lib/automation/flows/dto/list-flows-request.js.map +1 -1
- package/src/lib/automation/flows/flow-version.d.ts +89 -91
- package/src/lib/automation/flows/flow-version.js +4 -4
- package/src/lib/automation/flows/flow-version.js.map +1 -1
- package/src/lib/automation/flows/flow.d.ts +135 -143
- package/src/lib/automation/flows/flow.js +9 -15
- package/src/lib/automation/flows/flow.js.map +1 -1
- package/src/lib/automation/flows/folders/folder-requests.d.ts +20 -20
- package/src/lib/automation/flows/folders/folder-requests.js +12 -12
- package/src/lib/automation/flows/folders/folder-requests.js.map +1 -1
- package/src/lib/automation/flows/folders/folder.d.ts +10 -10
- package/src/lib/automation/flows/folders/folder.js +2 -2
- package/src/lib/automation/flows/folders/folder.js.map +1 -1
- package/src/lib/automation/flows/form.d.ts +49 -49
- package/src/lib/automation/flows/form.js +22 -22
- package/src/lib/automation/flows/form.js.map +1 -1
- package/src/lib/automation/flows/note.d.ts +18 -18
- package/src/lib/automation/flows/note.js +14 -14
- package/src/lib/automation/flows/note.js.map +1 -1
- package/src/lib/automation/flows/operations/add-action.js +2 -3
- package/src/lib/automation/flows/operations/add-action.js.map +1 -1
- package/src/lib/automation/flows/operations/index.d.ts +1117 -1133
- package/src/lib/automation/flows/operations/index.js +132 -178
- package/src/lib/automation/flows/operations/index.js.map +1 -1
- package/src/lib/automation/flows/operations/paste-operations.d.ts +205 -217
- package/src/lib/automation/flows/operations/update-action.js +2 -3
- package/src/lib/automation/flows/operations/update-action.js.map +1 -1
- package/src/lib/automation/flows/operations/update-trigger.js +2 -3
- package/src/lib/automation/flows/operations/update-trigger.js.map +1 -1
- package/src/lib/automation/flows/properties/property.d.ts +6 -6
- package/src/lib/automation/flows/properties/property.js +4 -4
- package/src/lib/automation/flows/properties/property.js.map +1 -1
- package/src/lib/automation/flows/sample-data/index.d.ts +46 -46
- package/src/lib/automation/flows/sample-data/index.js +31 -33
- package/src/lib/automation/flows/sample-data/index.js.map +1 -1
- package/src/lib/automation/flows/step-file/step-file.d.ts +16 -16
- package/src/lib/automation/flows/step-file/step-file.js +10 -10
- package/src/lib/automation/flows/step-file/step-file.js.map +1 -1
- package/src/lib/automation/flows/test-trigger.d.ts +13 -13
- package/src/lib/automation/flows/test-trigger.js +4 -4
- package/src/lib/automation/flows/test-trigger.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.d.ts +18 -18
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js +10 -13
- package/src/lib/automation/flows/triggers/trigger-events/trigger-event.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.d.ts +14 -14
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js +8 -8
- package/src/lib/automation/flows/triggers/trigger-events/trigger-events-dto.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger-run.d.ts +11 -11
- package/src/lib/automation/flows/triggers/trigger-run.js +7 -7
- package/src/lib/automation/flows/triggers/trigger-run.js.map +1 -1
- package/src/lib/automation/flows/triggers/trigger.d.ts +82 -82
- package/src/lib/automation/flows/triggers/trigger.js +15 -15
- package/src/lib/automation/flows/triggers/trigger.js.map +1 -1
- package/src/lib/automation/flows/util/flow-structure-util.d.ts +5 -5
- package/src/lib/automation/forms/index.d.ts +42 -42
- package/src/lib/automation/forms/index.js +21 -21
- package/src/lib/automation/forms/index.js.map +1 -1
- package/src/lib/automation/mcp/mcp.d.ts +105 -109
- package/src/lib/automation/mcp/mcp.js +7 -7
- package/src/lib/automation/mcp/mcp.js.map +1 -1
- package/src/lib/automation/mcp/pieces/mcp-piece.d.ts +24 -24
- package/src/lib/automation/mcp/pieces/mcp-piece.js +14 -14
- package/src/lib/automation/mcp/pieces/mcp-piece.js.map +1 -1
- package/src/lib/automation/pieces/dto/piece-requests.d.ts +67 -67
- package/src/lib/automation/pieces/dto/piece-requests.js +47 -58
- package/src/lib/automation/pieces/dto/piece-requests.js.map +1 -1
- package/src/lib/automation/pieces/piece.d.ts +56 -56
- package/src/lib/automation/pieces/piece.js +21 -21
- package/src/lib/automation/pieces/piece.js.map +1 -1
- package/src/lib/automation/project-release/project-release.d.ts +27 -27
- package/src/lib/automation/project-release/project-release.js +2 -2
- package/src/lib/automation/project-release/project-release.js.map +1 -1
- package/src/lib/automation/project-release/project-release.request.d.ts +65 -65
- package/src/lib/automation/project-release/project-release.request.js +25 -25
- package/src/lib/automation/project-release/project-release.request.js.map +1 -1
- package/src/lib/automation/project-release/project-state.d.ts +1246 -1286
- package/src/lib/automation/project-release/project-state.js +73 -73
- package/src/lib/automation/project-release/project-state.js.map +1 -1
- package/src/lib/automation/tables/cell.d.ts +11 -11
- package/src/lib/automation/tables/cell.js +2 -2
- package/src/lib/automation/tables/cell.js.map +1 -1
- package/src/lib/automation/tables/dto/fields.dto.d.ts +26 -26
- package/src/lib/automation/tables/dto/fields.dto.js +18 -18
- package/src/lib/automation/tables/dto/fields.dto.js.map +1 -1
- package/src/lib/automation/tables/dto/records.dto.d.ts +40 -40
- package/src/lib/automation/tables/dto/records.dto.js +26 -25
- package/src/lib/automation/tables/dto/records.dto.js.map +1 -1
- package/src/lib/automation/tables/dto/tables.dto.d.ts +55 -46
- package/src/lib/automation/tables/dto/tables.dto.js +35 -25
- package/src/lib/automation/tables/dto/tables.dto.js.map +1 -1
- package/src/lib/automation/tables/field.d.ts +26 -26
- package/src/lib/automation/tables/field.js +5 -5
- package/src/lib/automation/tables/field.js.map +1 -1
- package/src/lib/automation/tables/record.d.ts +23 -23
- package/src/lib/automation/tables/record.js +7 -13
- package/src/lib/automation/tables/record.js.map +1 -1
- package/src/lib/automation/tables/table-webhook.d.ts +11 -11
- package/src/lib/automation/tables/table-webhook.js +2 -2
- package/src/lib/automation/tables/table-webhook.js.map +1 -1
- package/src/lib/automation/tables/table.d.ts +49 -47
- package/src/lib/automation/tables/table.js +5 -8
- package/src/lib/automation/tables/table.js.map +1 -1
- package/src/lib/automation/trigger/index.d.ts +32 -32
- package/src/lib/automation/trigger/index.js +9 -9
- package/src/lib/automation/trigger/index.js.map +1 -1
- package/src/lib/automation/webhook/dto.d.ts +5 -5
- package/src/lib/automation/webhook/dto.js +2 -2
- package/src/lib/automation/webhook/dto.js.map +1 -1
- package/src/lib/automation/websocket/index.d.ts +6 -6
- package/src/lib/automation/websocket/index.js +4 -4
- package/src/lib/automation/websocket/index.js.map +1 -1
- package/src/lib/automation/workers/index.d.ts +365 -367
- package/src/lib/automation/workers/index.js +75 -75
- package/src/lib/automation/workers/index.js.map +1 -1
- package/src/lib/automation/workers/job-data.d.ts +773 -781
- package/src/lib/automation/workers/job-data.js +106 -106
- package/src/lib/automation/workers/job-data.js.map +1 -1
- package/src/lib/automation/workers/queue-metrics.d.ts +25 -25
- package/src/lib/automation/workers/queue-metrics.js +11 -11
- package/src/lib/automation/workers/queue-metrics.js.map +1 -1
- package/src/lib/core/authentication/dto/authentication-response.d.ts +25 -25
- package/src/lib/core/authentication/dto/authentication-response.js +6 -10
- package/src/lib/core/authentication/dto/authentication-response.js.map +1 -1
- package/src/lib/core/authentication/dto/sign-in-request.d.ts +6 -6
- package/src/lib/core/authentication/dto/sign-in-request.js +2 -2
- package/src/lib/core/authentication/dto/sign-in-request.js.map +1 -1
- package/src/lib/core/authentication/dto/sign-up-request.d.ts +14 -14
- package/src/lib/core/authentication/dto/sign-up-request.js +7 -11
- package/src/lib/core/authentication/dto/sign-up-request.js.map +1 -1
- package/src/lib/core/authentication/user-identity.d.ts +17 -17
- package/src/lib/core/authentication/user-identity.js +2 -2
- package/src/lib/core/authentication/user-identity.js.map +1 -1
- package/src/lib/core/common/activepieces-error.d.ts +6 -1
- package/src/lib/core/common/activepieces-error.js +1 -0
- package/src/lib/core/common/activepieces-error.js.map +1 -1
- package/src/lib/core/common/base-model.d.ts +9 -22
- package/src/lib/core/common/base-model.js +12 -21
- package/src/lib/core/common/base-model.js.map +1 -1
- package/src/lib/core/common/color.d.ts +3 -3
- package/src/lib/core/common/color.js +2 -4
- package/src/lib/core/common/color.js.map +1 -1
- package/src/lib/core/common/id-generator.d.ts +3 -3
- package/src/lib/core/common/id-generator.js +2 -4
- package/src/lib/core/common/id-generator.js.map +1 -1
- package/src/lib/core/common/metadata.d.ts +3 -3
- package/src/lib/core/common/metadata.js +2 -2
- package/src/lib/core/common/metadata.js.map +1 -1
- package/src/lib/core/common/multipart-file.d.ts +8 -8
- package/src/lib/core/common/multipart-file.js +6 -6
- package/src/lib/core/common/multipart-file.js.map +1 -1
- package/src/lib/core/common/seek-page.d.ts +2 -2
- package/src/lib/core/common/seek-page.js +5 -5
- package/src/lib/core/common/seek-page.js.map +1 -1
- package/src/lib/core/federated-authn/index.d.ts +50 -50
- package/src/lib/core/federated-authn/index.js +20 -20
- package/src/lib/core/federated-authn/index.js.map +1 -1
- package/src/lib/core/file/index.d.ts +17 -17
- package/src/lib/core/file/index.js +2 -2
- package/src/lib/core/file/index.js.map +1 -1
- package/src/lib/core/flag/flag.requests.d.ts +5 -5
- package/src/lib/core/flag/flag.requests.js +3 -3
- package/src/lib/core/flag/flag.requests.js.map +1 -1
- package/src/lib/core/health/index.d.ts +8 -8
- package/src/lib/core/health/index.js +6 -6
- package/src/lib/core/health/index.js.map +1 -1
- package/src/lib/core/license-keys/index.d.ts +58 -58
- package/src/lib/core/license-keys/index.js +35 -35
- package/src/lib/core/license-keys/index.js.map +1 -1
- package/src/lib/core/store-entry/dto/store-entry-request.d.ts +14 -14
- package/src/lib/core/store-entry/dto/store-entry-request.js +8 -10
- package/src/lib/core/store-entry/dto/store-entry-request.js.map +1 -1
- package/src/lib/core/tag/index.d.ts +32 -32
- package/src/lib/core/tag/index.js +11 -11
- package/src/lib/core/tag/index.js.map +1 -1
- package/src/lib/core/user/badges/index.d.ts +9 -9
- package/src/lib/core/user/badges/index.js +2 -2
- package/src/lib/core/user/badges/index.js.map +1 -1
- package/src/lib/core/user/index.d.ts +13 -13
- package/src/lib/core/user/index.js +9 -9
- package/src/lib/core/user/index.js.map +1 -1
- package/src/lib/core/user/user.d.ts +62 -62
- package/src/lib/core/user/user.js +27 -32
- package/src/lib/core/user/user.js.map +1 -1
- package/src/lib/ee/alerts/alerts-dto.d.ts +10 -10
- package/src/lib/ee/alerts/alerts-dto.js +2 -2
- package/src/lib/ee/alerts/alerts-dto.js.map +1 -1
- package/src/lib/ee/alerts/alerts-requests.d.ts +13 -13
- package/src/lib/ee/alerts/alerts-requests.js +7 -7
- package/src/lib/ee/alerts/alerts-requests.js.map +1 -1
- package/src/lib/ee/api-key/index.d.ts +37 -37
- package/src/lib/ee/api-key/index.js +8 -11
- package/src/lib/ee/api-key/index.js.map +1 -1
- package/src/lib/ee/audit-events/index.d.ts +1499 -1487
- package/src/lib/ee/audit-events/index.js +140 -113
- package/src/lib/ee/audit-events/index.js.map +1 -1
- package/src/lib/ee/authn/enterprise-local-authn/requests.d.ts +21 -21
- package/src/lib/ee/authn/enterprise-local-authn/requests.js +9 -12
- package/src/lib/ee/authn/enterprise-local-authn/requests.js.map +1 -1
- package/src/lib/ee/billing/index.d.ts +23 -23
- package/src/lib/ee/billing/index.js +15 -15
- package/src/lib/ee/billing/index.js.map +1 -1
- package/src/lib/ee/custom-domains/index.d.ts +19 -19
- package/src/lib/ee/custom-domains/index.js +7 -9
- package/src/lib/ee/custom-domains/index.js.map +1 -1
- package/src/lib/ee/event-destinations/dto.d.ts +20 -20
- package/src/lib/ee/event-destinations/dto.js +9 -9
- package/src/lib/ee/event-destinations/dto.js.map +1 -1
- package/src/lib/ee/event-destinations/index.d.ts +29 -29
- package/src/lib/ee/event-destinations/index.js +5 -5
- package/src/lib/ee/event-destinations/index.js.map +1 -1
- package/src/lib/ee/git-repo/index.d.ts +63 -63
- package/src/lib/ee/git-repo/index.js +22 -38
- package/src/lib/ee/git-repo/index.js.map +1 -1
- package/src/lib/ee/managed-authn/managed-authn-requests.d.ts +5 -5
- package/src/lib/ee/managed-authn/managed-authn-requests.js +4 -4
- package/src/lib/ee/managed-authn/managed-authn-requests.js.map +1 -1
- package/src/lib/ee/oauth-apps/oauth-app.d.ts +21 -21
- package/src/lib/ee/oauth-apps/oauth-app.js +9 -9
- package/src/lib/ee/oauth-apps/oauth-app.js.map +1 -1
- package/src/lib/ee/otp/otp-model.d.ts +11 -11
- package/src/lib/ee/otp/otp-model.js +2 -2
- package/src/lib/ee/otp/otp-model.js.map +1 -1
- package/src/lib/ee/otp/otp-requests.d.ts +6 -6
- package/src/lib/ee/otp/otp-requests.js +4 -4
- package/src/lib/ee/otp/otp-requests.js.map +1 -1
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.d.ts +50 -50
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js +24 -24
- package/src/lib/ee/product-embed/app-credentials/app-credentials-requests.js.map +1 -1
- package/src/lib/ee/product-embed/connection-keys/connection-requests.d.ts +46 -46
- package/src/lib/ee/product-embed/connection-keys/connection-requests.js +24 -24
- package/src/lib/ee/product-embed/connection-keys/connection-requests.js.map +1 -1
- package/src/lib/ee/project-members/project-member-request.d.ts +24 -24
- package/src/lib/ee/project-members/project-member-request.js +14 -14
- package/src/lib/ee/project-members/project-member-request.js.map +1 -1
- package/src/lib/ee/project-members/project-member.d.ts +49 -49
- package/src/lib/ee/project-members/project-member.js +6 -8
- package/src/lib/ee/project-members/project-member.js.map +1 -1
- package/src/lib/ee/scim/index.d.ts +167 -172
- package/src/lib/ee/scim/index.js +79 -79
- package/src/lib/ee/scim/index.js.map +1 -1
- package/src/lib/ee/secret-managers/dto.d.ts +59 -59
- package/src/lib/ee/secret-managers/dto.js +28 -29
- package/src/lib/ee/secret-managers/dto.js.map +1 -1
- package/src/lib/ee/secret-managers/index.d.ts +160 -208
- package/src/lib/ee/secret-managers/index.js +27 -27
- package/src/lib/ee/secret-managers/index.js.map +1 -1
- package/src/lib/ee/signing-key/signing-key-model.d.ts +11 -11
- package/src/lib/ee/signing-key/signing-key-model.js +3 -3
- package/src/lib/ee/signing-key/signing-key-model.js.map +1 -1
- package/src/lib/ee/signing-key/signing-key.request.d.ts +5 -5
- package/src/lib/ee/signing-key/signing-key.request.js +3 -3
- package/src/lib/ee/signing-key/signing-key.request.js.map +1 -1
- package/src/lib/management/ai-providers/index.d.ts +412 -419
- package/src/lib/management/ai-providers/index.js +74 -84
- package/src/lib/management/ai-providers/index.js.map +1 -1
- package/src/lib/management/analytics/index.d.ts +91 -91
- package/src/lib/management/analytics/index.js +29 -29
- package/src/lib/management/analytics/index.js.map +1 -1
- package/src/lib/management/invitations/index.d.ts +71 -71
- package/src/lib/management/invitations/index.js +23 -23
- package/src/lib/management/invitations/index.js.map +1 -1
- package/src/lib/management/platform/platform.model.d.ts +264 -270
- package/src/lib/management/platform/platform.model.js +39 -41
- package/src/lib/management/platform/platform.model.js.map +1 -1
- package/src/lib/management/platform/platform.request.d.ts +66 -66
- package/src/lib/management/platform/platform.request.js +28 -30
- package/src/lib/management/platform/platform.request.js.map +1 -1
- package/src/lib/management/project/project-requests.d.ts +32 -34
- package/src/lib/management/project/project-requests.js +23 -27
- package/src/lib/management/project/project-requests.js.map +1 -1
- package/src/lib/management/project/project.d.ts +118 -124
- package/src/lib/management/project/project.js +26 -31
- package/src/lib/management/project/project.js.map +1 -1
- package/src/lib/management/project-role/project-role.d.ts +12 -12
- package/src/lib/management/project-role/project-role.js +2 -2
- package/src/lib/management/project-role/project-role.js.map +1 -1
- package/src/lib/management/project-role/project-role.request.d.ts +17 -17
- package/src/lib/management/project-role/project-role.request.js +11 -15
- package/src/lib/management/project-role/project-role.request.js.map +1 -1
- package/src/lib/management/template/flow-template/flow-template.request.d.ts +5 -5
- package/src/lib/management/template/flow-template/flow-template.request.js +3 -3
- package/src/lib/management/template/flow-template/flow-template.request.js.map +1 -1
- package/src/lib/management/template/template-telemetry.d.ts +21 -21
- package/src/lib/management/template/template-telemetry.js +20 -21
- package/src/lib/management/template/template-telemetry.js.map +1 -1
- package/src/lib/management/template/template.d.ts +282 -286
- package/src/lib/management/template/template.js +44 -20
- package/src/lib/management/template/template.js.map +1 -1
- package/src/lib/management/template/template.requests.d.ts +219 -225
- package/src/lib/management/template/template.requests.js +26 -26
- package/src/lib/management/template/template.requests.js.map +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export declare enum UserIdentityProvider {
|
|
3
3
|
EMAIL = "EMAIL",
|
|
4
4
|
GOOGLE = "GOOGLE",
|
|
5
5
|
SAML = "SAML",
|
|
6
6
|
JWT = "JWT"
|
|
7
7
|
}
|
|
8
|
-
export declare const UserIdentity:
|
|
9
|
-
firstName:
|
|
10
|
-
lastName:
|
|
11
|
-
email:
|
|
12
|
-
password:
|
|
13
|
-
trackEvents:
|
|
14
|
-
newsLetter:
|
|
15
|
-
verified:
|
|
16
|
-
tokenVersion:
|
|
17
|
-
provider:
|
|
18
|
-
imageUrl:
|
|
19
|
-
id:
|
|
20
|
-
created:
|
|
21
|
-
updated:
|
|
22
|
-
}>;
|
|
23
|
-
export type UserIdentity =
|
|
8
|
+
export declare const UserIdentity: z.ZodObject<{
|
|
9
|
+
firstName: z.ZodString;
|
|
10
|
+
lastName: z.ZodString;
|
|
11
|
+
email: z.ZodString;
|
|
12
|
+
password: z.ZodString;
|
|
13
|
+
trackEvents: z.ZodBoolean;
|
|
14
|
+
newsLetter: z.ZodBoolean;
|
|
15
|
+
verified: z.ZodBoolean;
|
|
16
|
+
tokenVersion: z.ZodOptional<z.ZodString>;
|
|
17
|
+
provider: z.ZodEnum<typeof UserIdentityProvider>;
|
|
18
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
21
|
+
updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type UserIdentity = z.infer<typeof UserIdentity>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UserIdentity = exports.UserIdentityProvider = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const common_1 = require("../common");
|
|
6
6
|
var UserIdentityProvider;
|
|
7
7
|
(function (UserIdentityProvider) {
|
|
@@ -10,5 +10,5 @@ var UserIdentityProvider;
|
|
|
10
10
|
UserIdentityProvider["SAML"] = "SAML";
|
|
11
11
|
UserIdentityProvider["JWT"] = "JWT";
|
|
12
12
|
})(UserIdentityProvider || (exports.UserIdentityProvider = UserIdentityProvider = {}));
|
|
13
|
-
exports.UserIdentity =
|
|
13
|
+
exports.UserIdentity = zod_1.z.object(Object.assign(Object.assign({}, common_1.BaseModelSchema), { firstName: zod_1.z.string(), lastName: zod_1.z.string(), email: zod_1.z.string(), password: zod_1.z.string(), trackEvents: zod_1.z.boolean(), newsLetter: zod_1.z.boolean(), verified: zod_1.z.boolean(), tokenVersion: zod_1.z.string().optional(), provider: zod_1.z.nativeEnum(UserIdentityProvider), imageUrl: (0, common_1.Nullable)(zod_1.z.string()) }));
|
|
14
14
|
//# sourceMappingURL=user-identity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/core/authentication/user-identity.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/core/authentication/user-identity.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,sCAAqD;AAGrD,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC5B,uCAAe,CAAA;IACf,yCAAiB,CAAA;IACjB,qCAAa,CAAA;IACb,mCAAW,CAAA;AACf,CAAC,EALW,oBAAoB,oCAApB,oBAAoB,QAK/B;AACY,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,iCAC7B,wBAAe,KAClB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,EACrB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,EACpB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,EACjB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,EACpB,WAAW,EAAE,OAAC,CAAC,OAAO,EAAE,EACxB,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,EACvB,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,EACrB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EACnC,QAAQ,EAAE,OAAC,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAC5C,QAAQ,EAAE,IAAA,iBAAQ,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC,IAChC,CAAA"}
|
|
@@ -11,7 +11,7 @@ export declare class ActivepiecesError extends Error {
|
|
|
11
11
|
constructor(error: ApErrorParams, message?: string);
|
|
12
12
|
toString(): string;
|
|
13
13
|
}
|
|
14
|
-
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExistingUserErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowOperationInProgressErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerUpdateStatusErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | AIProviderModelNotSupportedParams | AIProviderNotSupportedParams | AIRequestNotSupportedParams | AICreditLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | ProjectExternalIdAlreadyExistsParams | SandboxMemoryIssueParams | SandboxExecutionTimeoutParams | SandboxInternalErrorParams | InvalidCustomDomainErrorParams | McpPieceRequiresConnectionParams | McpPieceConnectionMismatchParams | ErrorUpdatingSubscriptionParams | TriggerExecutionFailedParams | SubflowFailedParams | MachineNotAvailableParams | MachineNotConnectedParams | DoesNotMeetBusinessRequirementsParams | PieceSyncNotSupportedErrorParams | SecretManagerConnectionFailedParams | SecretManagerGetSecretFailedParams | SecretManagerKeyNotSecretParams | InvalidAIProviderCredentialsParams;
|
|
14
|
+
export type ApErrorParams = AuthenticationParams | AuthorizationErrorParams | EmailIsNotVerifiedErrorParams | EngineOperationFailureParams | EntityNotFoundErrorParams | ExistingUserErrorParams | FlowIsLockedErrorParams | FlowOperationErrorParams | FlowOperationInProgressErrorParams | InvalidApiKeyParams | InvalidAppConnectionParams | InvalidBearerTokenParams | InvalidClaimParams | InvalidCloudClaimParams | InvalidCredentialsErrorParams | InvalidJwtTokenErrorParams | InvalidOtpParams | InvalidSAMLResponseParams | InvitationOnlySignUpParams | JobRemovalFailureErrorParams | OpenAiFailedErrorParams | PauseMetadataMissingErrorParams | PermissionDeniedErrorParams | QuotaExceededParams | FeatureDisabledErrorParams | SignUpDisabledParams | SystemInvalidErrorParams | SystemPropNotDefinedErrorParams | TestTriggerFailedErrorParams | TriggerUpdateStatusErrorParams | TriggerFailedErrorParams | ValidationErrorParams | InvitationOnlySignUpParams | UserIsInActiveErrorParams | DomainIsNotAllowedErrorParams | EmailAuthIsDisabledParams | ExistingAlertChannelErrorParams | EmailAlreadyHasActivationKey | AIProviderModelNotSupportedParams | AIProviderNotSupportedParams | AIRequestNotSupportedParams | AICreditLimitExceededParams | SessionExpiredParams | InvalidLicenseKeyParams | NoChatResponseParams | InvalidSmtpCredentialsErrorParams | InvalidGitCredentialsParams | InvalidReleaseTypeParams | ProjectExternalIdAlreadyExistsParams | SandboxMemoryIssueParams | SandboxExecutionTimeoutParams | SandboxInternalErrorParams | InvalidCustomDomainErrorParams | McpPieceRequiresConnectionParams | McpPieceConnectionMismatchParams | ErrorUpdatingSubscriptionParams | TriggerExecutionFailedParams | SubflowFailedParams | MachineNotAvailableParams | MachineNotConnectedParams | DoesNotMeetBusinessRequirementsParams | PieceSyncNotSupportedErrorParams | SandboxLogSizeExceededParams | SecretManagerConnectionFailedParams | SecretManagerGetSecretFailedParams | SecretManagerKeyNotSecretParams | InvalidAIProviderCredentialsParams;
|
|
15
15
|
export type TriggerExecutionFailedParams = BaseErrorParams<ErrorCode.TRIGGER_EXECUTION_FAILED, {
|
|
16
16
|
flowId: FlowId;
|
|
17
17
|
message?: string;
|
|
@@ -214,6 +214,10 @@ export type MachineNotConnectedParams = BaseErrorParams<ErrorCode.MACHINE_NOT_CO
|
|
|
214
214
|
export type DoesNotMeetBusinessRequirementsParams = BaseErrorParams<ErrorCode.DOES_NOT_MEET_BUSINESS_REQUIREMENTS, {
|
|
215
215
|
message: string;
|
|
216
216
|
}>;
|
|
217
|
+
export type SandboxLogSizeExceededParams = BaseErrorParams<ErrorCode.SANDBOX_LOG_SIZE_EXCEEDED, {
|
|
218
|
+
standardOutput: string;
|
|
219
|
+
standardError: string;
|
|
220
|
+
}>;
|
|
217
221
|
export type SecretManagerConnectionFailedParams = BaseErrorParams<ErrorCode.SECRET_MANAGER_CONNECTION_FAILED, {
|
|
218
222
|
message: string;
|
|
219
223
|
provider: string;
|
|
@@ -293,6 +297,7 @@ export declare enum ErrorCode {
|
|
|
293
297
|
SUBFLOW_FAILED = "SUBFLOW_FAILED",
|
|
294
298
|
DOES_NOT_MEET_BUSINESS_REQUIREMENTS = "DOES_NOT_MEET_BUSINESS_REQUIREMENTS",
|
|
295
299
|
PIECE_SYNC_NOT_SUPPORTED = "PIECE_SYNC_NOT_SUPPORTED",
|
|
300
|
+
SANDBOX_LOG_SIZE_EXCEEDED = "SANDBOX_LOG_SIZE_EXCEEDED",
|
|
296
301
|
SECRET_MANAGER_CONNECTION_FAILED = "SECRET_MANAGER_CONNECTION_FAILED",
|
|
297
302
|
SECRET_MANAGER_GET_SECRET_FAILED = "SECRET_MANAGER_GET_SECRET_FAILED",
|
|
298
303
|
SECRET_MANAGER_KEY_NOT_SECRET = "SECRET_MANAGER_KEY_NOT_SECRET",
|
|
@@ -78,6 +78,7 @@ var ErrorCode;
|
|
|
78
78
|
ErrorCode["SUBFLOW_FAILED"] = "SUBFLOW_FAILED";
|
|
79
79
|
ErrorCode["DOES_NOT_MEET_BUSINESS_REQUIREMENTS"] = "DOES_NOT_MEET_BUSINESS_REQUIREMENTS";
|
|
80
80
|
ErrorCode["PIECE_SYNC_NOT_SUPPORTED"] = "PIECE_SYNC_NOT_SUPPORTED";
|
|
81
|
+
ErrorCode["SANDBOX_LOG_SIZE_EXCEEDED"] = "SANDBOX_LOG_SIZE_EXCEEDED";
|
|
81
82
|
ErrorCode["SECRET_MANAGER_CONNECTION_FAILED"] = "SECRET_MANAGER_CONNECTION_FAILED";
|
|
82
83
|
ErrorCode["SECRET_MANAGER_GET_SECRET_FAILED"] = "SECRET_MANAGER_GET_SECRET_FAILED";
|
|
83
84
|
ErrorCode["SECRET_MANAGER_KEY_NOT_SECRET"] = "SECRET_MANAGER_KEY_NOT_SECRET";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/activepieces-error.ts"],"names":[],"mappings":";;;AASA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAoB,EAAE,OAAgB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAe;IAEvC,CAAC;IAEQ,QAAQ;QACb,OAAO,IAAI,CAAC,SAAS,CAAC;YAClB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;SAC5B,CAAC,CAAA;IACN,CAAC;CACJ;AAZD,8CAYC;
|
|
1
|
+
{"version":3,"file":"activepieces-error.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/activepieces-error.ts"],"names":[],"mappings":";;;AASA,MAAa,iBAAkB,SAAQ,KAAK;IACxC,YAAmB,KAAoB,EAAE,OAAgB;QACrD,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;QADpC,UAAK,GAAL,KAAK,CAAe;IAEvC,CAAC;IAEQ,QAAQ;QACb,OAAO,IAAI,CAAC,SAAS,CAAC;YAClB,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI;YACrB,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM;SAC5B,CAAC,CAAA;IACN,CAAC;CACJ;AAZD,8CAYC;AA6bD,IAAY,SAmEX;AAnED,WAAY,SAAS;IACjB,4DAA+C,CAAA;IAC/C,4DAA+C,CAAA;IAC/C,4DAA+C,CAAA;IAC/C,kDAAqC,CAAA;IACrC,wEAA2D,CAAA;IAC3D,8CAAiC,CAAA;IACjC,4CAA+B,CAAA;IAC/B,8DAAiD,CAAA;IACjD,oEAAuD,CAAA;IACvD,kEAAqD,CAAA;IACrD,sDAAyC,CAAA;IACzC,4DAA+C,CAAA;IAC/C,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,oEAAuD,CAAA;IACvD,0DAA6C,CAAA;IAC7C,8DAAiD,CAAA;IACjD,kEAAqD,CAAA;IACrD,wDAA2C,CAAA;IAC3C,4CAA+B,CAAA;IAC/B,8DAAiD,CAAA;IACjD,sFAAyE,CAAA;IACzE,8DAAiD,CAAA;IACjD,sEAAyD,CAAA;IACzD,wCAA2B,CAAA;IAC3B,gDAAmC,CAAA;IACnC,8DAAiD,CAAA;IACjD,0DAA6C,CAAA;IAC7C,gDAAmC,CAAA;IACnC,4CAA+B,CAAA;IAC/B,wDAA2C,CAAA;IAC3C,wDAA2C,CAAA;IAC3C,0EAA6D,CAAA;IAC7D,wCAA2B,CAAA;IAC3B,4DAA+C,CAAA;IAC/C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,8CAAiC,CAAA;IACjC,8DAAiD,CAAA;IACjD,oDAAuC,CAAA;IACvC,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,kEAAqD,CAAA;IACrD,kDAAqC,CAAA;IACrC,wDAA2C,CAAA;IAC3C,gEAAmD,CAAA;IACnD,wDAA2C,CAAA;IAC3C,4DAA+C,CAAA;IAC/C,8CAAiC,CAAA;IACjC,kDAAqC,CAAA;IACrC,sCAAyB,CAAA;IACzB,wDAA2C,CAAA;IAC3C,kFAAqE,CAAA;IACrE,kEAAqD,CAAA;IACrD,gEAAmD,CAAA;IACnD,0DAA6C,CAAA;IAC7C,4EAA+D,CAAA;IAC/D,4EAA+D,CAAA;IAC/D,8CAAiC,CAAA;IACjC,wFAA2E,CAAA;IAC3E,kEAAqD,CAAA;IACrD,oEAAuD,CAAA;IACvD,kFAAqE,CAAA;IACrE,kFAAqE,CAAA;IACrE,4EAA+D,CAAA;IAC/D,gFAAmE,CAAA;AACvE,CAAC,EAnEW,SAAS,yBAAT,SAAS,QAmEpB"}
|
|
@@ -1,29 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export type BaseModel<T> = {
|
|
3
3
|
id: T;
|
|
4
4
|
created: string;
|
|
5
5
|
updated: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const DateOrString: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
7
8
|
export declare const BaseModelSchema: {
|
|
8
|
-
id:
|
|
9
|
-
created:
|
|
10
|
-
updated:
|
|
9
|
+
id: z.ZodString;
|
|
10
|
+
created: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
11
|
+
updated: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodString>;
|
|
11
12
|
};
|
|
12
|
-
export declare const Nullable: <T extends
|
|
13
|
-
export declare function NullableEnum<T extends
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
};
|
|
17
|
-
type TDiscriminatedUnionObject<Discriminator extends string> = TObject<TDiscriminatedUnionProperties<Discriminator>>;
|
|
18
|
-
export type TDiscriminatedUnion<Types extends TObject[] = TObject[]> = {
|
|
19
|
-
[Kind]: 'DiscriminatedUnion';
|
|
20
|
-
static: Static<TUnion<Types>>;
|
|
21
|
-
anyOf: Types;
|
|
22
|
-
discriminator: {
|
|
23
|
-
propertyName: string;
|
|
24
|
-
mapping?: Record<string, string>;
|
|
25
|
-
};
|
|
26
|
-
} & TSchema;
|
|
27
|
-
/** Creates a DiscriminatedUnion that works with OpenAPI. */
|
|
28
|
-
export declare function DiscriminatedUnion<Discriminator extends string, Types extends TDiscriminatedUnionObject<Discriminator>[]>(discriminator: Discriminator, types: [...Types], options?: SchemaOptions): TDiscriminatedUnion<Types>;
|
|
29
|
-
export {};
|
|
13
|
+
export declare const Nullable: <T extends z.ZodType>(schema: T) => z.ZodOptional<z.ZodNullable<T>>;
|
|
14
|
+
export declare function NullableEnum<T extends Record<string, string | number>>(enumObj: T): z.ZodOptional<z.ZodNullable<z.ZodEnum<T>>>;
|
|
15
|
+
export declare const OptionalBooleanFromQuery: z.ZodPipe<z.ZodTransform<boolean | undefined, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
16
|
+
export declare const OptionalArrayFromQuery: <T extends z.ZodType>(schema: T) => z.ZodPipe<z.ZodTransform<any[] | undefined, unknown>, z.ZodOptional<z.ZodArray<T>>>;
|
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Nullable = exports.BaseModelSchema = void 0;
|
|
3
|
+
exports.OptionalArrayFromQuery = exports.OptionalBooleanFromQuery = exports.Nullable = exports.BaseModelSchema = exports.DateOrString = void 0;
|
|
4
4
|
exports.NullableEnum = NullableEnum;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
exports.DateOrString = zod_1.z.preprocess((val) => (val instanceof Date ? val.toISOString() : val), zod_1.z.string());
|
|
7
7
|
exports.BaseModelSchema = {
|
|
8
|
-
id:
|
|
9
|
-
created:
|
|
10
|
-
updated:
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
created: exports.DateOrString,
|
|
10
|
+
updated: exports.DateOrString,
|
|
11
11
|
};
|
|
12
12
|
// Used to generate valid nullable in OpenAPI Schema
|
|
13
|
-
const Nullable = (schema) =>
|
|
13
|
+
const Nullable = (schema) => schema.nullable().optional();
|
|
14
14
|
exports.Nullable = Nullable;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const values = schema.anyOf.map(f => f.const);
|
|
18
|
-
return typebox_1.Type.Optional(typebox_1.Type.Unsafe({ type: 'string', enum: values, nullable: true }));
|
|
19
|
-
}
|
|
20
|
-
/** Creates a DiscriminatedUnion that works with OpenAPI. */
|
|
21
|
-
function DiscriminatedUnion(discriminator, types, options) {
|
|
22
|
-
return (0, typebox_1.CreateType)({
|
|
23
|
-
[typebox_1.Kind]: 'DiscriminatedUnion',
|
|
24
|
-
anyOf: types,
|
|
25
|
-
discriminator: {
|
|
26
|
-
propertyName: discriminator,
|
|
27
|
-
},
|
|
28
|
-
}, options);
|
|
15
|
+
function NullableEnum(enumObj) {
|
|
16
|
+
return zod_1.z.nativeEnum(enumObj).nullable().optional();
|
|
29
17
|
}
|
|
18
|
+
exports.OptionalBooleanFromQuery = zod_1.z.preprocess((val) => val === 'true' || val === true ? true : val === 'false' || val === false ? false : undefined, zod_1.z.boolean().optional());
|
|
19
|
+
const OptionalArrayFromQuery = (schema) => zod_1.z.preprocess((val) => (Array.isArray(val) ? val : val !== undefined ? [val] : undefined), zod_1.z.array(schema).optional());
|
|
20
|
+
exports.OptionalArrayFromQuery = OptionalArrayFromQuery;
|
|
30
21
|
//# sourceMappingURL=base-model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-model.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/base-model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"base-model.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/base-model.ts"],"names":[],"mappings":";;;AAsBA,oCAEC;AAxBD,6BAAuB;AAQV,QAAA,YAAY,GAAG,OAAC,CAAC,UAAU,CACpC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,YAAY,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,EACxD,OAAC,CAAC,MAAM,EAAE,CACb,CAAA;AAEY,QAAA,eAAe,GAAG;IAC3B,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,oBAAY;IACrB,OAAO,EAAE,oBAAY;CACxB,CAAA;AAED,oDAAoD;AAC7C,MAAM,QAAQ,GAAG,CAAsB,MAAS,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAA;AAA3E,QAAA,QAAQ,YAAmE;AAExF,SAAgB,YAAY,CAA4C,OAAU;IAC9E,OAAO,OAAC,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAA;AACtD,CAAC;AAEY,QAAA,wBAAwB,GAAG,OAAC,CAAC,UAAU,CAChD,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,MAAM,IAAI,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,EACrG,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CACzB,CAAA;AAEM,MAAM,sBAAsB,GAAG,CAAsB,MAAS,EAAE,EAAE,CACrE,OAAC,CAAC,UAAU,CACR,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,EAC3E,OAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE,CAC7B,CAAA;AAJQ,QAAA,sBAAsB,0BAI9B"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ColorHex:
|
|
3
|
-
export type ColorHex =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ColorHex: z.ZodString;
|
|
3
|
+
export type ColorHex = z.infer<typeof ColorHex>;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ColorHex = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.ColorHex =
|
|
6
|
-
pattern: '^#[0-9A-Fa-f]{6}$',
|
|
7
|
-
});
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ColorHex = zod_1.z.string().regex(/^#[0-9A-Fa-f]{6}$/);
|
|
8
6
|
//# sourceMappingURL=color.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/color.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/color.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEV,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ApId:
|
|
3
|
-
export type ApId =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ApId: z.ZodString;
|
|
3
|
+
export type ApId = z.infer<typeof ApId>;
|
|
4
4
|
export declare const apId: (size?: number) => string;
|
|
5
5
|
export declare const secureApId: (length: number) => string;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.secureApId = exports.apId = exports.ApId = void 0;
|
|
4
|
-
const typebox_1 = require("@sinclair/typebox");
|
|
5
4
|
const nanoid_1 = require("nanoid");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
6
|
const ALPHABET = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
7
7
|
const ID_LENGTH = 21;
|
|
8
|
-
exports.ApId =
|
|
9
|
-
pattern: `^[0-9a-zA-Z]{${ID_LENGTH}}$`,
|
|
10
|
-
});
|
|
8
|
+
exports.ApId = zod_1.z.string().regex(new RegExp(`^[0-9a-zA-Z]{${ID_LENGTH}}$`));
|
|
11
9
|
exports.apId = (0, nanoid_1.customAlphabet)(ALPHABET, ID_LENGTH);
|
|
12
10
|
const secureApId = (length) => (0, nanoid_1.customAlphabet)(ALPHABET, length)();
|
|
13
11
|
exports.secureApId = secureApId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"id-generator.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/id-generator.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"id-generator.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/id-generator.ts"],"names":[],"mappings":";;;AAAA,mCAAuC;AACvC,6BAAuB;AAEvB,MAAM,QAAQ,GAAG,gEAAgE,CAAA;AACjF,MAAM,SAAS,GAAG,EAAE,CAAA;AAEP,QAAA,IAAI,GAAG,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,gBAAgB,SAAS,IAAI,CAAC,CAAC,CAAA;AAIlE,QAAA,IAAI,GAAG,IAAA,uBAAc,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAA;AAEhD,MAAM,UAAU,GAAG,CAAC,MAAc,EAAE,EAAE,CAAC,IAAA,uBAAc,EAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,CAAA;AAAnE,QAAA,UAAU,cAAyD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Flexible key-value record type for storing arbitrary data
|
|
4
4
|
*
|
|
@@ -17,5 +17,5 @@ import { Static } from '@sinclair/typebox';
|
|
|
17
17
|
* customField: "customValue"
|
|
18
18
|
* }
|
|
19
19
|
*/
|
|
20
|
-
export declare const Metadata:
|
|
21
|
-
export type Metadata =
|
|
20
|
+
export declare const Metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
21
|
+
export type Metadata = z.infer<typeof Metadata>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Metadata = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
/**
|
|
6
6
|
* Flexible key-value record type for storing arbitrary data
|
|
7
7
|
*
|
|
@@ -20,5 +20,5 @@ const typebox_1 = require("@sinclair/typebox");
|
|
|
20
20
|
* customField: "customValue"
|
|
21
21
|
* }
|
|
22
22
|
*/
|
|
23
|
-
exports.Metadata =
|
|
23
|
+
exports.Metadata = zod_1.z.record(zod_1.z.string(), zod_1.z.unknown());
|
|
24
24
|
//# sourceMappingURL=metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/metadata.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"metadata.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/metadata.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB;;;;;;;;;;;;;;;;;GAiBG;AACU,QAAA,QAAQ,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,CAAA"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ApMultipartFile:
|
|
3
|
-
filename:
|
|
4
|
-
data:
|
|
5
|
-
type:
|
|
6
|
-
mimetype:
|
|
7
|
-
}>;
|
|
8
|
-
export type ApMultipartFile =
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ApMultipartFile: z.ZodObject<{
|
|
3
|
+
filename: z.ZodString;
|
|
4
|
+
data: z.ZodUnknown;
|
|
5
|
+
type: z.ZodLiteral<"file">;
|
|
6
|
+
mimetype: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ApMultipartFile = z.infer<typeof ApMultipartFile> & {
|
|
9
9
|
data: Buffer;
|
|
10
10
|
};
|
|
11
11
|
export declare const isMultipartFile: (value: unknown) => value is ApMultipartFile;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isMultipartFile = exports.ApMultipartFile = void 0;
|
|
4
|
-
const
|
|
5
|
-
exports.ApMultipartFile =
|
|
6
|
-
filename:
|
|
7
|
-
data:
|
|
8
|
-
type:
|
|
9
|
-
mimetype:
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ApMultipartFile = zod_1.z.object({
|
|
6
|
+
filename: zod_1.z.string(),
|
|
7
|
+
data: zod_1.z.unknown(),
|
|
8
|
+
type: zod_1.z.literal('file'),
|
|
9
|
+
mimetype: zod_1.z.string().optional(),
|
|
10
10
|
});
|
|
11
11
|
const isMultipartFile = (value) => {
|
|
12
12
|
return typeof value === 'object' && value !== null && 'type' in value && value.type === 'file' && 'filename' in value && 'data' in value && value.data instanceof Buffer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multipart-file.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/multipart-file.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"multipart-file.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/multipart-file.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAGV,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAMK,MAAM,eAAe,GAAG,CAAC,KAAc,EAA4B,EAAE;IACxE,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,MAAM,IAAI,UAAU,IAAI,KAAK,IAAI,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,IAAI,YAAY,MAAM,CAAA;AAC5K,CAAC,CAAA;AAFY,QAAA,eAAe,mBAE3B"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
export type Cursor = string | null;
|
|
3
3
|
export type SeekPage<T> = {
|
|
4
4
|
next: Cursor;
|
|
5
5
|
previous: Cursor;
|
|
6
6
|
data: T[];
|
|
7
7
|
};
|
|
8
|
-
export declare const SeekPage: (t:
|
|
8
|
+
export declare const SeekPage: (t: z.ZodType) => z.ZodType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SeekPage = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
5
|
const base_model_1 = require("./base-model");
|
|
6
|
-
const SeekPage = (t) =>
|
|
7
|
-
data:
|
|
8
|
-
next: (0, base_model_1.Nullable)(
|
|
9
|
-
previous: (0, base_model_1.Nullable)(
|
|
6
|
+
const SeekPage = (t) => zod_1.z.object({
|
|
7
|
+
data: zod_1.z.array(t),
|
|
8
|
+
next: (0, base_model_1.Nullable)(zod_1.z.string()),
|
|
9
|
+
previous: (0, base_model_1.Nullable)(zod_1.z.string()),
|
|
10
10
|
});
|
|
11
11
|
exports.SeekPage = SeekPage;
|
|
12
12
|
//# sourceMappingURL=seek-page.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seek-page.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/seek-page.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"seek-page.js","sourceRoot":"","sources":["../../../../../src/lib/core/common/seek-page.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AACvB,6CAAuC;AAUhC,MAAM,QAAQ,GAAG,CAAC,CAAY,EAAa,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,CAAC,CAAC;IAChB,IAAI,EAAE,IAAA,qBAAQ,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IAC1B,QAAQ,EAAE,IAAA,qBAAQ,EAAC,OAAC,CAAC,MAAM,EAAE,CAAC;CACjC,CAAC,CAAA;AAJW,QAAA,QAAQ,YAInB"}
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
import { ThirdPartyAuthnProviderEnum } from './authn-provider-name';
|
|
3
3
|
export * from './authn-provider-name';
|
|
4
|
-
export declare const federatedAuthnLoginResponse:
|
|
5
|
-
loginUrl:
|
|
6
|
-
}>;
|
|
7
|
-
export type FederatedAuthnLoginResponse =
|
|
8
|
-
export declare const ClaimTokenRequest:
|
|
9
|
-
providerName:
|
|
10
|
-
code:
|
|
11
|
-
}>;
|
|
12
|
-
export type ClaimTokenRequest =
|
|
13
|
-
export declare const GoogleAuthnProviderConfig:
|
|
14
|
-
clientId:
|
|
15
|
-
clientSecret:
|
|
16
|
-
}>;
|
|
17
|
-
export type GoogleAuthnProviderConfig =
|
|
18
|
-
export declare const GithubAuthnProviderConfig:
|
|
19
|
-
clientId:
|
|
20
|
-
clientSecret:
|
|
21
|
-
}>;
|
|
22
|
-
export type GithubAuthnProviderConfig =
|
|
23
|
-
export declare const SAMLAuthnProviderConfig:
|
|
24
|
-
idpMetadata:
|
|
25
|
-
idpCertificate:
|
|
26
|
-
}>;
|
|
27
|
-
export type SAMLAuthnProviderConfig =
|
|
28
|
-
export declare const FederatedAuthnProviderConfig:
|
|
29
|
-
google:
|
|
30
|
-
clientId:
|
|
31
|
-
clientSecret:
|
|
32
|
-
}
|
|
33
|
-
github:
|
|
34
|
-
clientId:
|
|
35
|
-
clientSecret:
|
|
36
|
-
}
|
|
37
|
-
saml:
|
|
38
|
-
idpMetadata:
|
|
39
|
-
idpCertificate:
|
|
40
|
-
}
|
|
41
|
-
}>;
|
|
42
|
-
export type FederatedAuthnProviderConfig =
|
|
43
|
-
export declare const FederatedAuthnProviderConfigWithoutSensitiveData:
|
|
44
|
-
google:
|
|
45
|
-
clientId:
|
|
46
|
-
}
|
|
47
|
-
github:
|
|
48
|
-
clientId:
|
|
49
|
-
}
|
|
50
|
-
saml:
|
|
51
|
-
}>;
|
|
52
|
-
export type FederatedAuthnProviderConfigWithoutSensitiveData =
|
|
4
|
+
export declare const federatedAuthnLoginResponse: z.ZodObject<{
|
|
5
|
+
loginUrl: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type FederatedAuthnLoginResponse = z.infer<typeof federatedAuthnLoginResponse>;
|
|
8
|
+
export declare const ClaimTokenRequest: z.ZodObject<{
|
|
9
|
+
providerName: z.ZodEnum<typeof ThirdPartyAuthnProviderEnum>;
|
|
10
|
+
code: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ClaimTokenRequest = z.infer<typeof ClaimTokenRequest>;
|
|
13
|
+
export declare const GoogleAuthnProviderConfig: z.ZodObject<{
|
|
14
|
+
clientId: z.ZodString;
|
|
15
|
+
clientSecret: z.ZodString;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
export type GoogleAuthnProviderConfig = z.infer<typeof GoogleAuthnProviderConfig>;
|
|
18
|
+
export declare const GithubAuthnProviderConfig: z.ZodObject<{
|
|
19
|
+
clientId: z.ZodString;
|
|
20
|
+
clientSecret: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type GithubAuthnProviderConfig = z.infer<typeof GithubAuthnProviderConfig>;
|
|
23
|
+
export declare const SAMLAuthnProviderConfig: z.ZodObject<{
|
|
24
|
+
idpMetadata: z.ZodString;
|
|
25
|
+
idpCertificate: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type SAMLAuthnProviderConfig = z.infer<typeof SAMLAuthnProviderConfig>;
|
|
28
|
+
export declare const FederatedAuthnProviderConfig: z.ZodObject<{
|
|
29
|
+
google: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
30
|
+
clientId: z.ZodString;
|
|
31
|
+
clientSecret: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
github: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
34
|
+
clientId: z.ZodString;
|
|
35
|
+
clientSecret: z.ZodString;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
saml: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
38
|
+
idpMetadata: z.ZodString;
|
|
39
|
+
idpCertificate: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export type FederatedAuthnProviderConfig = z.infer<typeof FederatedAuthnProviderConfig>;
|
|
43
|
+
export declare const FederatedAuthnProviderConfigWithoutSensitiveData: z.ZodObject<{
|
|
44
|
+
google: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
45
|
+
clientId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>>>;
|
|
47
|
+
github: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
48
|
+
clientId: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>>;
|
|
50
|
+
saml: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
export type FederatedAuthnProviderConfigWithoutSensitiveData = z.infer<typeof FederatedAuthnProviderConfigWithoutSensitiveData>;
|
|
@@ -2,37 +2,37 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FederatedAuthnProviderConfigWithoutSensitiveData = exports.FederatedAuthnProviderConfig = exports.SAMLAuthnProviderConfig = exports.GithubAuthnProviderConfig = exports.GoogleAuthnProviderConfig = exports.ClaimTokenRequest = exports.federatedAuthnLoginResponse = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
6
|
const common_1 = require("../common");
|
|
7
7
|
const authn_provider_name_1 = require("./authn-provider-name");
|
|
8
8
|
tslib_1.__exportStar(require("./authn-provider-name"), exports);
|
|
9
|
-
exports.federatedAuthnLoginResponse =
|
|
10
|
-
loginUrl:
|
|
9
|
+
exports.federatedAuthnLoginResponse = zod_1.z.object({
|
|
10
|
+
loginUrl: zod_1.z.string(),
|
|
11
11
|
});
|
|
12
|
-
exports.ClaimTokenRequest =
|
|
13
|
-
providerName:
|
|
14
|
-
code:
|
|
12
|
+
exports.ClaimTokenRequest = zod_1.z.object({
|
|
13
|
+
providerName: zod_1.z.nativeEnum(authn_provider_name_1.ThirdPartyAuthnProviderEnum),
|
|
14
|
+
code: zod_1.z.string(),
|
|
15
15
|
});
|
|
16
|
-
exports.GoogleAuthnProviderConfig =
|
|
17
|
-
clientId:
|
|
18
|
-
clientSecret:
|
|
16
|
+
exports.GoogleAuthnProviderConfig = zod_1.z.object({
|
|
17
|
+
clientId: zod_1.z.string(),
|
|
18
|
+
clientSecret: zod_1.z.string(),
|
|
19
19
|
});
|
|
20
|
-
exports.GithubAuthnProviderConfig =
|
|
21
|
-
clientId:
|
|
22
|
-
clientSecret:
|
|
20
|
+
exports.GithubAuthnProviderConfig = zod_1.z.object({
|
|
21
|
+
clientId: zod_1.z.string(),
|
|
22
|
+
clientSecret: zod_1.z.string(),
|
|
23
23
|
});
|
|
24
|
-
exports.SAMLAuthnProviderConfig =
|
|
25
|
-
idpMetadata:
|
|
26
|
-
idpCertificate:
|
|
24
|
+
exports.SAMLAuthnProviderConfig = zod_1.z.object({
|
|
25
|
+
idpMetadata: zod_1.z.string(),
|
|
26
|
+
idpCertificate: zod_1.z.string(),
|
|
27
27
|
});
|
|
28
|
-
exports.FederatedAuthnProviderConfig =
|
|
28
|
+
exports.FederatedAuthnProviderConfig = zod_1.z.object({
|
|
29
29
|
google: (0, common_1.Nullable)(exports.GoogleAuthnProviderConfig),
|
|
30
30
|
github: (0, common_1.Nullable)(exports.GithubAuthnProviderConfig),
|
|
31
31
|
saml: (0, common_1.Nullable)(exports.SAMLAuthnProviderConfig),
|
|
32
32
|
});
|
|
33
|
-
exports.FederatedAuthnProviderConfigWithoutSensitiveData =
|
|
34
|
-
google: (0, common_1.Nullable)(
|
|
35
|
-
github: (0, common_1.Nullable)(
|
|
36
|
-
saml: (0, common_1.Nullable)(
|
|
33
|
+
exports.FederatedAuthnProviderConfigWithoutSensitiveData = zod_1.z.object({
|
|
34
|
+
google: (0, common_1.Nullable)(exports.GoogleAuthnProviderConfig.pick({ clientId: true })),
|
|
35
|
+
github: (0, common_1.Nullable)(exports.GithubAuthnProviderConfig.pick({ clientId: true })),
|
|
36
|
+
saml: (0, common_1.Nullable)(zod_1.z.object({})),
|
|
37
37
|
});
|
|
38
38
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/federated-authn/index.ts"],"names":[],"mappings":";;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/core/federated-authn/index.ts"],"names":[],"mappings":";;;;AAAA,6BAAuB;AACvB,sCAAoC;AACpC,+DAAmE;AAEnE,gEAAqC;AAExB,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,YAAY,EAAE,OAAC,CAAC,UAAU,CAAC,iDAA2B,CAAC;IACvD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAA;AAIW,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAA;AAGW,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAA;AAGW,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAA;AAGW,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,IAAA,iBAAQ,EAAC,iCAAyB,CAAC;IAC3C,MAAM,EAAE,IAAA,iBAAQ,EAAC,iCAAyB,CAAC;IAC3C,IAAI,EAAE,IAAA,iBAAQ,EAAC,+BAAuB,CAAC;CAC1C,CAAC,CAAA;AAGW,QAAA,gDAAgD,GAAG,OAAC,CAAC,MAAM,CAAC;IACrE,MAAM,EAAE,IAAA,iBAAQ,EAAC,iCAAyB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,MAAM,EAAE,IAAA,iBAAQ,EAAC,iCAAyB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,IAAI,EAAE,IAAA,iBAAQ,EAAC,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;CAC/B,CAAC,CAAA"}
|