weave-typescript 0.33.0 → 0.35.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.
Files changed (37) hide show
  1. package/dist/google/api/annotations.pb.js +1 -1
  2. package/dist/google/api/http.pb.js +1 -1
  3. package/dist/google/protobuf/descriptor.pb.js +1 -1
  4. package/dist/google/protobuf/struct.pb.js +1 -1
  5. package/dist/google/protobuf/timestamp.pb.js +1 -1
  6. package/dist/weaveapi/atc/v1/event.pb.js +1 -1
  7. package/dist/weaveapi/atc/v1/message.pb.js +1 -1
  8. package/dist/weaveapi/atc/v1/process.pb.js +1 -1
  9. package/dist/weaveapi/atc/v1/run.pb.js +1 -1
  10. package/dist/weaveapi/atc/v1/service.pb.js +1 -1
  11. package/dist/weaveapi/auth/v1/auth.pb.d.ts +56 -0
  12. package/dist/weaveapi/auth/v1/auth.pb.js +625 -2
  13. package/dist/weaveapi/auth/v1/service.pb.d.ts +173 -1
  14. package/dist/weaveapi/auth/v1/service.pb.js +1613 -65
  15. package/dist/weaveapi/chat/v1/chat.pb.js +1 -1
  16. package/dist/weaveapi/chat/v1/service.pb.js +1 -1
  17. package/dist/weaveapi/consolidation/v1/consolidation.pb.js +1 -1
  18. package/dist/weaveapi/consolidation/v1/service.pb.js +1 -1
  19. package/dist/weaveapi/inference/v1/inference.pb.js +1 -1
  20. package/dist/weaveapi/inference/v1/service.pb.js +1 -1
  21. package/dist/weaveapi/ingestion/v1/ingestion.pb.js +1 -1
  22. package/dist/weaveapi/ingestion/v1/service.pb.js +1 -1
  23. package/dist/weaveapi/model/v1/model.pb.js +1 -1
  24. package/dist/weaveapi/model/v1/service.pb.js +1 -1
  25. package/dist/weaveapi/organization/v1/organization.pb.js +1 -1
  26. package/dist/weaveapi/organization/v1/service.pb.js +1 -1
  27. package/dist/weaveapi/project/v1/project.pb.js +1 -1
  28. package/dist/weaveapi/project/v1/service.pb.js +1 -1
  29. package/dist/weaveapi/provider/v1/provider.pb.js +1 -1
  30. package/dist/weaveapi/provider/v1/service.pb.js +1 -1
  31. package/dist/weaveapi/retrieval/v1/retrieval.pb.js +1 -1
  32. package/dist/weaveapi/retrieval/v1/service.pb.js +1 -1
  33. package/dist/weaveapi/task/v1/service.pb.js +1 -1
  34. package/dist/weaveapi/task/v1/task.pb.js +1 -1
  35. package/dist/weavesql/weavedb/auth_identity_sql.d.ts +166 -0
  36. package/dist/weavesql/weavedb/auth_identity_sql.js +367 -1
  37. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/chat/v1/chat.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/chat/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/consolidation/v1/consolidation.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/consolidation/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/inference/v1/inference.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/inference/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/ingestion/v1/ingestion.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/ingestion/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/model/v1/model.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/model/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/organization/v1/organization.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/organization/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/project/v1/project.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/project/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/provider/v1/provider.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/provider/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/retrieval/v1/retrieval.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/retrieval/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/task/v1/service.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.11.7
4
+ // protoc-gen-ts_proto v2.11.8
5
5
  // protoc unknown
6
6
  // source: weaveapi/task/v1/task.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -523,4 +523,170 @@ export interface MarkApplicationSessionOrganizationSessionStateRow {
523
523
  }
524
524
  export declare function markApplicationSessionOrganizationSessionState(client: Client, args: MarkApplicationSessionOrganizationSessionStateArgs): Promise<MarkApplicationSessionOrganizationSessionStateRow | null>;
525
525
  export declare const deleteExpiredApplicationSessionsQuery = "-- name: DeleteExpiredApplicationSessions :execrows\nDELETE FROM weave.application_sessions\nWHERE expires_at <= now()\n OR status IN ('revoked', 'expired')";
526
+ export declare const createAuthInviteSessionQuery = "-- name: CreateAuthInviteSession :one\nINSERT INTO weave.auth_invite_sessions (\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n return_url,\n expires_at\n) VALUES (\n $1,\n $2,\n $3,\n $4,\n $5,\n $6,\n $7,\n $8,\n $9,\n $10,\n $11,\n $12\n)\nRETURNING\n id,\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n status,\n recovery_reason,\n return_url,\n oauth_provider,\n oauth_state,\n oauth_return_url,\n expires_at,\n completed_at,\n revoked_at,\n created_at,\n updated_at";
527
+ export interface CreateAuthInviteSessionArgs {
528
+ organizationId: string;
529
+ userId: string;
530
+ identityLinkId: string | null;
531
+ stytchOrganizationId: string;
532
+ stytchMemberId: string;
533
+ stytchMemberSessionId: string;
534
+ stytchSessionTokenCiphertext: Buffer | null;
535
+ email: string;
536
+ displayName: string;
537
+ roleIds: string[];
538
+ returnUrl: string;
539
+ expiresAt: Date;
540
+ }
541
+ export interface CreateAuthInviteSessionRow {
542
+ id: string;
543
+ organizationId: string;
544
+ userId: string;
545
+ identityLinkId: string | null;
546
+ stytchOrganizationId: string;
547
+ stytchMemberId: string;
548
+ stytchMemberSessionId: string;
549
+ stytchSessionTokenCiphertext: Buffer | null;
550
+ email: string;
551
+ displayName: string;
552
+ roleIds: string[];
553
+ status: string;
554
+ recoveryReason: string;
555
+ returnUrl: string;
556
+ oauthProvider: string;
557
+ oauthState: string;
558
+ oauthReturnUrl: string;
559
+ expiresAt: Date;
560
+ completedAt: Date | null;
561
+ revokedAt: Date | null;
562
+ createdAt: Date;
563
+ updatedAt: Date;
564
+ }
565
+ export declare function createAuthInviteSession(client: Client, args: CreateAuthInviteSessionArgs): Promise<CreateAuthInviteSessionRow | null>;
566
+ export declare const getAuthInviteSessionQuery = "-- name: GetAuthInviteSession :one\nSELECT\n id,\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n status,\n recovery_reason,\n return_url,\n oauth_provider,\n oauth_state,\n oauth_return_url,\n expires_at,\n completed_at,\n revoked_at,\n created_at,\n updated_at\nFROM weave.auth_invite_sessions\nWHERE id = $1";
567
+ export interface GetAuthInviteSessionArgs {
568
+ id: string;
569
+ }
570
+ export interface GetAuthInviteSessionRow {
571
+ id: string;
572
+ organizationId: string;
573
+ userId: string;
574
+ identityLinkId: string | null;
575
+ stytchOrganizationId: string;
576
+ stytchMemberId: string;
577
+ stytchMemberSessionId: string;
578
+ stytchSessionTokenCiphertext: Buffer | null;
579
+ email: string;
580
+ displayName: string;
581
+ roleIds: string[];
582
+ status: string;
583
+ recoveryReason: string;
584
+ returnUrl: string;
585
+ oauthProvider: string;
586
+ oauthState: string;
587
+ oauthReturnUrl: string;
588
+ expiresAt: Date;
589
+ completedAt: Date | null;
590
+ revokedAt: Date | null;
591
+ createdAt: Date;
592
+ updatedAt: Date;
593
+ }
594
+ export declare function getAuthInviteSession(client: Client, args: GetAuthInviteSessionArgs): Promise<GetAuthInviteSessionRow | null>;
595
+ export declare const setAuthInviteSessionOAuthStateQuery = "-- name: SetAuthInviteSessionOAuthState :one\nUPDATE weave.auth_invite_sessions\nSET\n oauth_provider = $1,\n oauth_state = $2,\n oauth_return_url = $3,\n updated_at = now()\nWHERE id = $4\n AND status = 'ready'\n AND expires_at > now()\nRETURNING\n id,\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n status,\n recovery_reason,\n return_url,\n oauth_provider,\n oauth_state,\n oauth_return_url,\n expires_at,\n completed_at,\n revoked_at,\n created_at,\n updated_at";
596
+ export interface SetAuthInviteSessionOAuthStateArgs {
597
+ oauthProvider: string;
598
+ oauthState: string;
599
+ oauthReturnUrl: string;
600
+ id: string;
601
+ }
602
+ export interface SetAuthInviteSessionOAuthStateRow {
603
+ id: string;
604
+ organizationId: string;
605
+ userId: string;
606
+ identityLinkId: string | null;
607
+ stytchOrganizationId: string;
608
+ stytchMemberId: string;
609
+ stytchMemberSessionId: string;
610
+ stytchSessionTokenCiphertext: Buffer | null;
611
+ email: string;
612
+ displayName: string;
613
+ roleIds: string[];
614
+ status: string;
615
+ recoveryReason: string;
616
+ returnUrl: string;
617
+ oauthProvider: string;
618
+ oauthState: string;
619
+ oauthReturnUrl: string;
620
+ expiresAt: Date;
621
+ completedAt: Date | null;
622
+ revokedAt: Date | null;
623
+ createdAt: Date;
624
+ updatedAt: Date;
625
+ }
626
+ export declare function setAuthInviteSessionOAuthState(client: Client, args: SetAuthInviteSessionOAuthStateArgs): Promise<SetAuthInviteSessionOAuthStateRow | null>;
627
+ export declare const markAuthInviteSessionCompletedQuery = "-- name: MarkAuthInviteSessionCompleted :one\nUPDATE weave.auth_invite_sessions\nSET\n status = 'completed',\n completed_at = now(),\n updated_at = now()\nWHERE id = $1\n AND status = 'ready'\n AND expires_at > now()\nRETURNING\n id,\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n status,\n recovery_reason,\n return_url,\n oauth_provider,\n oauth_state,\n oauth_return_url,\n expires_at,\n completed_at,\n revoked_at,\n created_at,\n updated_at";
628
+ export interface MarkAuthInviteSessionCompletedArgs {
629
+ id: string;
630
+ }
631
+ export interface MarkAuthInviteSessionCompletedRow {
632
+ id: string;
633
+ organizationId: string;
634
+ userId: string;
635
+ identityLinkId: string | null;
636
+ stytchOrganizationId: string;
637
+ stytchMemberId: string;
638
+ stytchMemberSessionId: string;
639
+ stytchSessionTokenCiphertext: Buffer | null;
640
+ email: string;
641
+ displayName: string;
642
+ roleIds: string[];
643
+ status: string;
644
+ recoveryReason: string;
645
+ returnUrl: string;
646
+ oauthProvider: string;
647
+ oauthState: string;
648
+ oauthReturnUrl: string;
649
+ expiresAt: Date;
650
+ completedAt: Date | null;
651
+ revokedAt: Date | null;
652
+ createdAt: Date;
653
+ updatedAt: Date;
654
+ }
655
+ export declare function markAuthInviteSessionCompleted(client: Client, args: MarkAuthInviteSessionCompletedArgs): Promise<MarkAuthInviteSessionCompletedRow | null>;
656
+ export declare const markAuthInviteSessionRecoveryRequiredQuery = "-- name: MarkAuthInviteSessionRecoveryRequired :one\nUPDATE weave.auth_invite_sessions\nSET\n status = 'recovery_required',\n recovery_reason = $1,\n updated_at = now()\nWHERE id = $2\n AND status IN ('ready', 'expired', 'recovery_required')\nRETURNING\n id,\n organization_id,\n user_id,\n identity_link_id,\n stytch_organization_id,\n stytch_member_id,\n stytch_member_session_id,\n stytch_session_token_ciphertext,\n email,\n display_name,\n role_ids,\n status,\n recovery_reason,\n return_url,\n oauth_provider,\n oauth_state,\n oauth_return_url,\n expires_at,\n completed_at,\n revoked_at,\n created_at,\n updated_at";
657
+ export interface MarkAuthInviteSessionRecoveryRequiredArgs {
658
+ recoveryReason: string;
659
+ id: string;
660
+ }
661
+ export interface MarkAuthInviteSessionRecoveryRequiredRow {
662
+ id: string;
663
+ organizationId: string;
664
+ userId: string;
665
+ identityLinkId: string | null;
666
+ stytchOrganizationId: string;
667
+ stytchMemberId: string;
668
+ stytchMemberSessionId: string;
669
+ stytchSessionTokenCiphertext: Buffer | null;
670
+ email: string;
671
+ displayName: string;
672
+ roleIds: string[];
673
+ status: string;
674
+ recoveryReason: string;
675
+ returnUrl: string;
676
+ oauthProvider: string;
677
+ oauthState: string;
678
+ oauthReturnUrl: string;
679
+ expiresAt: Date;
680
+ completedAt: Date | null;
681
+ revokedAt: Date | null;
682
+ createdAt: Date;
683
+ updatedAt: Date;
684
+ }
685
+ export declare function markAuthInviteSessionRecoveryRequired(client: Client, args: MarkAuthInviteSessionRecoveryRequiredArgs): Promise<MarkAuthInviteSessionRecoveryRequiredRow | null>;
686
+ export declare const revokeAuthInviteSessionsByMemberQuery = "-- name: RevokeAuthInviteSessionsByMember :execrows\nUPDATE weave.auth_invite_sessions\nSET\n status = 'revoked',\n revoked_at = now(),\n updated_at = now()\nWHERE stytch_organization_id = $1\n AND stytch_member_id = $2\n AND status = 'ready'";
687
+ export interface RevokeAuthInviteSessionsByMemberArgs {
688
+ stytchOrganizationId: string;
689
+ stytchMemberId: string;
690
+ }
691
+ export declare const deleteExpiredAuthInviteSessionsQuery = "-- name: DeleteExpiredAuthInviteSessions :execrows\nDELETE FROM weave.auth_invite_sessions\nWHERE expires_at <= now()\n OR status IN ('completed', 'expired', 'revoked')";
526
692
  export {};